GITLAB
grouille
/
IMA3_P10
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Issues
0
Merge Requests
0
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
4bad3ae3112a92d3115a0eedd538e3ea614772ae
Authored by
pifou
2020-02-17 16:17:26 +0000
1 parent
a20417ba
Ajout du code Ansible
Showing
4 changed files
with
19 additions
and
0 deletions
Show diff stats
Ansible/execAnsible.sh
Ansible/my_task.yml
Ansible/playbooktest.yml
Ansible/taskPing.yml
Inline
Side-by-side
Ansible/execAnsible.sh
0 → 100755
Wrap text
Show/Hide comments
View file @
4bad3ae
...
...
@@ -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
Wrap text
Show/Hide comments
View file @
4bad3ae
Ansible/playbooktest.yml
0 → 100644
Wrap text
Show/Hide comments
View file @
4bad3ae
...
...
@@ -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
Wrap text
Show/Hide comments
View file @
4bad3ae
...
...
@@ -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
...
...