create.yml
14 lignes · 514 octets
--- - name: Créer l'annuaire et les deux postes vierges hosts: localhost gather_facts: false tasks: - name: Repartir d'un journal Ansible vide ansible.builtin.file: path: "{{ lookup('env', 'ANSIBLE_LOG_PATH') }}" state: absent - name: Démarrer les conteneurs (annuaire Debian 13, postes Ubuntu 26.04 et Debian 13) ansible.builtin.command: "{{ playbook_dir }}/../../../scripts/cible.sh demarrer {{ item }}" loop: [debian, ubuntu, debian2] changed_when: true
GitRust