This is because for no reason, the shell module will just hang, never launching the container. This is also a bit cleaner... |
||
|---|---|---|
| inv | ||
| roles | ||
| .gitignore | ||
| README.md | ||
| all.yml | ||
| ansible.cfg | ||
| music.yml | ||
| requirements.txt | ||
README.md
Install Ansible
pip install -r requirements.txt
ansible-galaxy collection install community.general
Ansible Vault
To manage secrets, this repository use Ansible Vault.
Create a secret
ansible-vault create inv/host_vars/chosto.me/secrets.yml
Edit a secret
ansible-vault edit inv/host_vars/chosto.me/secrets.yml
Server
All servers managed should have this base configuration in order to work :
- a user
chosto - SSH access allowed for this user
- a root access (
sudo) for userchostowith a password specified asansible_become_passin inventory
e.g.
# adduser chosto
# adduser chosto sudo
Usage
ansible-playbook [-t tag1 tag2...] all.yml