initial project commit
This commit is contained in:
commit
413e5b4e75
25
ansible.cfg
Normal file
25
ansible.cfg
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = hosts
|
||||||
|
roles_path = roles
|
||||||
|
collections_path = collections
|
||||||
|
remote_tmp = /tmp/.ansible-${USER}/tmp
|
||||||
|
gathering = smart
|
||||||
|
gather_timeout = 300
|
||||||
|
fact_path = facts.d
|
||||||
|
fact_caching = jsonfile
|
||||||
|
fact_caching_connection = facts.d
|
||||||
|
fact_caching_timeout = 300
|
||||||
|
retry_files_enabled = False
|
||||||
|
forks = 40
|
||||||
|
timeout = 30
|
||||||
|
host_key_checking = False
|
||||||
|
display_skipped_hosts = False
|
||||||
|
bin_ansible_callbacks = True
|
||||||
|
callback_whitelist = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
|
deprecation_warnings = False
|
||||||
|
command_warnings = False
|
||||||
|
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
pipelining = True
|
||||||
|
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey
|
25
reboot_wait_for.yml
Normal file
25
reboot_wait_for.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
- name: Do something, reboot, do something else
|
||||||
|
hosts: all
|
||||||
|
become: false
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Do something
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "hello. im doing. something. perhaps."
|
||||||
|
|
||||||
|
|
||||||
|
- name: I am. To be. Rebooted...
|
||||||
|
ansible.builtin.reboot:
|
||||||
|
msg : "Goodbye. Cruel, world."
|
||||||
|
test_command : /bin/true
|
||||||
|
|
||||||
|
|
||||||
|
- name: Do something else
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "hello. im doing... something... ELSE!"
|
||||||
|
|
||||||
|
|
||||||
|
...
|
Loading…
x
Reference in New Issue
Block a user