Collection of Ansible playbooks used in the Verdnatura server farm
Go to file
Juan Ferrer 1553e27281 Update README.md 2024-09-27 18:34:39 +00:00
collections refs #8025 Collections README line break fixes 2024-09-24 12:21:50 +02:00
inventories refs #8025 Vault added, core hosts splitted, tasks parametized, auth enabled 2024-09-27 13:26:47 +02:00
playbooks refs #8025 Vault added, core hosts splitted, tasks parametized, auth enabled 2024-09-27 13:26:47 +02:00
roles refs #8025 Vault added, core hosts splitted, tasks parametized, auth enabled 2024-09-27 13:26:47 +02:00
.gitignore refs #8025 Vault added, core hosts splitted, tasks parametized, auth enabled 2024-09-27 13:26:47 +02:00
README.md Update README.md 2024-09-27 18:34:39 +00:00
ansible.cfg refs #8025 vault_password_file commented 2024-09-27 14:07:07 +02:00
vault-playbook.sh refs #8025 vault_password_file commented 2024-09-27 14:07:07 +02:00
vault.yml refs #8025 Vault added, core hosts splitted, tasks parametized, auth enabled 2024-09-27 13:26:47 +02:00

README.md

Verdnatura Ansible playbooks

Collection of Ansible playbooks used in the Verdnatura server farm.

Install Ansible

Instal Ansible on Debian.

apt install ansible

Run playbook

Before merging changes into protected branches, playbooks should be tested locally to ensure they work properly.

Launch playbook on the fly on a host not declared in the inventory.

ansible-playbook.sh -i <ip_or_hostname>, [--tags tag1,tag2] playbooks/test.yml

Note the comma at the end of the hostname or IP.

Manage vault

When running playbooks that use the vault, the vault-playbook.sh script can be used, it is ovelay over the original ansible-playbook command. Note that password must be saved into .vaultpass file.

Edit vault file.

ansible-vault edit vault.yml

Common playbooks

  • facts.yml: Collect and display facts from a host
  • ping.yml: Check that a host is alive and reachable
  • awx.yml: Create and configure AWX user
  • debian.yml: Setup base Debian server

Documentation