rajout exemple inventaire et group_vars et host_vars
This commit is contained in:
7
5_inventaire/foo.yml
Normal file
7
5_inventaire/foo.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: foo
|
||||||
|
become: false
|
||||||
|
hosts: machines
|
||||||
|
tasks:
|
||||||
|
- name: bar
|
||||||
|
debug:
|
||||||
|
msg: "hello world: {{ var_machine }}"
|
||||||
1
5_inventaire/group_vars/machines
Normal file
1
5_inventaire/group_vars/machines
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var_machine: foo
|
||||||
1
5_inventaire/host_vars/m4
Normal file
1
5_inventaire/host_vars/m4
Normal file
@@ -0,0 +1 @@
|
|||||||
|
foo: bar
|
||||||
2
5_inventaire/inventaire
Normal file
2
5_inventaire/inventaire
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[machines]
|
||||||
|
m[1:10]
|
||||||
Reference in New Issue
Block a user