Ansible: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 224: Line 224:
* [https://spacelift.io/blog/ansible-variables Ansible » Types of Variables]
* [https://spacelift.io/blog/ansible-variables Ansible » Types of Variables]


| valign="top" |
|-
| colspan="3" |
----
|-
| valign="top" |
| valign="top" |
* [https://realpython.com/python-virtual-environments-a-primer/ Python Virtual Environments]
* [https://realpython.com/python-virtual-environments-a-primer/ Python Virtual Environments]
* [https://stackoverflow.com/questions/62209131/ Dependency File in Python]
* [[Docker Compose]]
* [[Docker Compose]]
* [[Linux Containers]]
* [[Linux Containers]]
Line 231: Line 238:
* [[Podman]]
* [[Podman]]
* [[Docker]]
* [[Docker]]
|-
| colspan="3" |
----
|-
| valign="top" |


| valign="top" |
| valign="top" |

Revision as of 10:22, 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) $
python -m venv .venv --prompt="molecule"
# .venv\Scripts\activate
# (molecule) PS>

References