mise au point ex inventaire
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
- name: foo
|
||||
become: false
|
||||
hosts: machines
|
||||
tasks:
|
||||
- name: bar
|
||||
debug:
|
||||
msg: "hello world: {{ var_machine }}"
|
||||
1
5_inventaire/group_vars/cibles.yml
Normal file
1
5_inventaire/group_vars/cibles.yml
Normal file
@@ -0,0 +1 @@
|
||||
myvar: "variable de groupe"
|
||||
@@ -0,0 +1 @@
|
||||
myvar: "valeur specifique à amue-sib-centos-01.formation.actilis.fr"
|
||||
@@ -1,2 +1,12 @@
|
||||
[machines]
|
||||
m[1:10]
|
||||
# /etc/ansible/hosts
|
||||
[debian]
|
||||
amue-sib-debian-01.formation.actilis.fr
|
||||
|
||||
|
||||
[centos]
|
||||
amue-sib-centos-01.formation.actilis.fr
|
||||
|
||||
|
||||
[cibles:children]
|
||||
debian
|
||||
centos
|
||||
Reference in New Issue
Block a user