Collection of Ansible playbooks used in the Verdnatura server farm
Go to file
Juan Ferrer ca9b87b8f8 refs #8025 README ping description 2024-09-26 14:57:01 +02:00
collections refs #8025 Collections README line break fixes 2024-09-24 12:21:50 +02:00
inventories refs #8025 Production hosts updated, tags without brackets 2024-09-26 13:49:23 +02:00
playbooks refs #8025 Tags doc added 2024-09-26 14:55:41 +02:00
roles refs #8025 Production hosts updated, tags without brackets 2024-09-26 13:49:23 +02:00
.gitignore add gitignore file 2023-11-15 16:05:01 +01:00
README.md refs #8025 README ping description 2024-09-26 14:57:01 +02:00
ansible.cfg refs #8025 Create awx user 2024-09-25 23:21:02 +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 -u root -i <ip_or_hostname>, [--tags tag1,tag2] playbooks/test.yml

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

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
  • test.yml: Test an specific role. Don't forget to undo changes before pushing!
  • debian.yml: Setup base Debian server

Documentation