gather_facts
This commit is contained in:
12
ansible.cfg
Normal file
12
ansible.cfg
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = inventory.yml
|
||||||
|
interpreter_python = auto_silent
|
||||||
|
nocows = 1
|
||||||
|
timeout= 60
|
||||||
|
force_valid_group_names = ignore
|
||||||
|
#private_key_file = ~/.ssh/id_ed25519
|
||||||
|
private_key_file = ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
ssh_args = -o StrictHostKeyChecking=no
|
||||||
|
|
1974
facts_brandine.txt
Normal file
1974
facts_brandine.txt
Normal file
File diff suppressed because it is too large
Load Diff
1538
facts_quimby.txt
Normal file
1538
facts_quimby.txt
Normal file
File diff suppressed because it is too large
Load Diff
1478
facts_terry.txt
Normal file
1478
facts_terry.txt
Normal file
File diff suppressed because it is too large
Load Diff
6
gather_facts.yml
Normal file
6
gather_facts.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
- hosts: "{{ target }}"
|
||||||
|
gather_facts: true
|
||||||
|
remote_user: pi
|
||||||
|
roles:
|
||||||
|
- gather-facts
|
||||||
|
|
@@ -4,6 +4,7 @@ stack4:
|
|||||||
willie:
|
willie:
|
||||||
kirk:
|
kirk:
|
||||||
brandine:
|
brandine:
|
||||||
|
terry:
|
||||||
|
|
||||||
webs:
|
webs:
|
||||||
hosts:
|
hosts:
|
||||||
|
3
roles/gather-facts/tasks/main.yml
Normal file
3
roles/gather-facts/tasks/main.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
- name: Informationen sammeln
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_facts
|
Reference in New Issue
Block a user