Collection of Ansible playbooks used in the Verdnatura server farm
Go to file
Juan Ferrer f8a765e47c refs #8025 README fix 2024-09-24 12:28:10 +02:00
collections refs #8025 Collections README line break fixes 2024-09-24 12:21:50 +02:00
inventories refs #8025 send-mail made generic 2024-09-24 12:27:24 +02:00
playbooks refs #8025 send-mail made generic 2024-09-24 12:27:24 +02:00
roles refs #8025 send-mail made generic 2024-09-24 12:27:24 +02:00
.gitignore add gitignore file 2023-11-15 16:05:01 +01:00
README.md refs #8025 README fix 2024-09-24 12:28:10 +02:00
ansible.cfg refs #8025 README added, intentories dir, lab inventory added 2024-09-24 12:20:42 +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.

To run an Ansible playbook locally on a temporary host without registering it in the inventory (on the fly) run the following command.

ansible-playbook playbooks/test.yml -u root -i <ip_or_hostname>,

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

Basic playbooks

  • facts.yml: Collect and display facts from a host.
  • ping.yml: Checking that a host is alive and reachable by Ansible.
  • test.yml: Test an specific role. Don't forget to undo changes before pushing!
  • debian.yml: Setup base Debian server

Documentation