diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9592696ffe54c809d6c8526a06e4860e8f836885 --- /dev/null +++ b/ansible/ansible.cfg @@ -0,0 +1,56 @@ +# Fichier de configuration pour Ansible dans l'infrastructure de LQDN. + +# Pour voir toutes les options, lancez `ansible-config list` ou la +# documentation: https://docs.ansible.com/ansible/latest/reference_appendices/config.html. + +[defaults] + +inventory = inventory.yml +log_path = ansible-run-lqdn.log +interpreter_python = auto_silent +roles_path = roles/ + +# Rajoute cette ligne aux fichiers de configuration géré par Ansible. +ansible_managed = "⚠ Ce fichier est géré par Ansible, ne pas modifier à la main ! - Responsables : Équipe Technique de La Quadrature Du Net" + + +# Configuration de l'affichage des playbooks +stdout_callback = yaml + +# Ansible va nous prévenir si des commandes peuvent être remplacé +# par des modules ansible. +command_warnings = True + +# Meuuuh 🐮 +nocows = 0 + + +[inventory] + +# R.A.S + +[privilege_escalation] +become = False +become_method = sudo + +[colors] +highlight = white +verbose = blue +warn = bright purple +error = red +debug = dark gray +deprecate = purple +skip = cyan +unreachable = red +ok = green +changed = yellow +diff_add = green +diff_remove = red +diff_lines = cyan + + +[diff] +# Montre les différences, comme en utilisant -D/--diff +always = True +# Combien de lignes de contexte +context = 2 diff --git a/ansible/don-lqdn b/ansible/don-lqdn index 5fd2833e823edec9bb64702cb9b6a925e163d6bd..dc68d4f87e029cb0e1cbb05ee23e984bc5fc8488 160000 --- a/ansible/don-lqdn +++ b/ansible/don-lqdn @@ -1 +1 @@ -Subproject commit 5fd2833e823edec9bb64702cb9b6a925e163d6bd +Subproject commit dc68d4f87e029cb0e1cbb05ee23e984bc5fc8488 diff --git a/ansible/playbook.yml b/ansible/playbook.yml index e5f41cc11bd4d1cd93859bc68c4420589034a543..ebf8b57c310152c382856b0fd1c4f7a1f0404b74 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -5,8 +5,10 @@ # test grâce à Vagrant. - name: Installation du site de don dans l'environment de test - hosts: default - become: true + hosts: don-debian64 + become: yes + # become_user: root + remote_user: root vars_files: - configuration.test.yml roles: