DebOps: Difference between revisions
No edit summary |
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 21: | Line 21: | ||
[3]: docker run -it --rm debops/debops | [3]: docker run -it --rm debops/debops | ||
</blockquote> | </blockquote> | ||
<div style="float:right;">From Hacker News https://news.ycombinator.com/item?id=20821039 ~drybjed</div> | |||
== Local == | == Local == | ||
| Line 34: | Line 35: | ||
To [https://docs.debops.org/en/latest/ansible/roles/debops.bootstrap/getting-started.html bootstrap] my first host, I ran <tt>debops bootstrap -u root --limit labs</tt>, but it would fail on <tt>'/usr/bin/python: not found'</tt> <ref>https://github.com/debops/debops/issues/1002</ref>. By specifying that the remote host should use python3, it succeeded. | To [https://docs.debops.org/en/latest/ansible/roles/debops.bootstrap/getting-started.html bootstrap] my first host, I ran <tt>debops bootstrap -u root --limit labs</tt>, but it would fail on <tt>'/usr/bin/python: not found'</tt> <ref>https://github.com/debops/debops/issues/1002</ref>. By specifying that the remote host should use python3, it succeeded. | ||
< | <syntaxhighlight lang=ini> | ||
[all:vars] | [all:vars] | ||
ansible_python_interpreter='/usr/bin/env python3' | ansible_python_interpreter='/usr/bin/env python3' | ||
| Line 42: | Line 43: | ||
# greg-desk ansible_connection=local | # greg-desk ansible_connection=local | ||
labs ansible_ssh_host=labs.qualitybox.us | labs ansible_ssh_host=labs.qualitybox.us | ||
</ | </syntaxhighlight> | ||
Next, I ran the common playbook with <tt>debops common -u root --limit labs</tt>, but that failed trying to download some secrets (error message below). Re-running the command succeeded. Common includes apt_install <ref>https://docs.debops.org/en/latest/ansible/roles/debops.apt_install/getting-started.html#example-playbook</ref>, so all my packages were installed via common. | Next, I ran the common playbook with <tt>debops common -u root --limit labs</tt>, but that failed trying to download some secrets (error message below). Re-running the command succeeded. Common includes apt_install <ref>https://docs.debops.org/en/latest/ansible/roles/debops.apt_install/getting-started.html#example-playbook</ref>, so all my packages were installed via common. | ||