Ansible: Difference between revisions
Jump to navigation
Jump to search
Line 179: | Line 179: | ||
==Knowledge== | ==Knowledge== | ||
{| | |||
| valign="top" | | |||
<source lang="bash"> | <source lang="bash"> | ||
python3 -m venv .venv --prompt="academia" | python3 -m venv .venv --prompt="academia" | ||
# source .venv/bin/activate | |||
# (academia) $ | |||
</source> | |||
| valign="top" | | |||
<source lang="bash"> | |||
python3 -m venv .venv --prompt="molecule" | python3 -m venv .venv --prompt="molecule" | ||
# source .venv/bin/activate | |||
# (molecule) $ | |||
</source> | </source> | ||
|} | |||
== References == | == References == |
Revision as of 09:54, 26 November 2022
sudo apt update && sudo apt list --upgradeable
sudo apt upgrade && sudo apt install ansible
ansible --version
Playbook
chorke-academia-project ├─ main_playbook.yml └─ inventories/ ├─ staging/ │ └─ academia/ │ ├─ group_vars/ │ │ ├─ all.yaml │ │ └─ academia_group.yaml │ └─ inventory.yml └─ test/ └─ academia/ ├─ group_vars/ │ ├─ all.yaml │ └─ academia_group.yaml └─ inventory.yml
Modules
Namespaces
| ||
Knowledge
python3 -m venv .venv --prompt="academia"
# source .venv/bin/activate
# (academia) $
|
python3 -m venv .venv --prompt="molecule"
# source .venv/bin/activate
# (molecule) $
|