Commit 4bad3ae3112a92d3115a0eedd538e3ea614772ae

Authored by pifou
1 parent a20417ba

Ajout du code Ansible

Ansible/execAnsible.sh 0 → 100755
... ... @@ -0,0 +1,7 @@
  1 +#!/bin/bash
  2 +while [ 1 ]
  3 +do
  4 +ansible-playbook playbooktest.yml
  5 +ansible-playbook taskPing.yml -i inventaire.ini --ask-pass
  6 +rm inventaire.ini
  7 +done
0 8 \ No newline at end of file
... ...
Ansible/my_task.yml 0 → 100644
Ansible/playbooktest.yml 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +---
  2 +- name: Wait until the file /home/pifou/inventaire.ini
  3 + hosts: localhost
  4 + tasks:
  5 + - wait_for:
  6 + path: /home/pifou/inventaire.ini
0 7 \ No newline at end of file
... ...
Ansible/taskPing.yml 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +---
  2 +- name: Ping
  3 + hosts: all
  4 + remote_user: pi
  5 + tasks:
  6 + - ping:
0 7 \ No newline at end of file
... ...