From 413e5b4e757d1b38376ac3b7bef7f4b2b4225c15 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 28 Apr 2023 21:26:51 -0400 Subject: [PATCH] initial project commit --- ansible.cfg | 25 +++++++++++++++++++++++++ reboot_wait_for.yml | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 ansible.cfg create mode 100644 reboot_wait_for.yml diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..2944a78 --- /dev/null +++ b/ansible.cfg @@ -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 diff --git a/reboot_wait_for.yml b/reboot_wait_for.yml new file mode 100644 index 0000000..efa95f9 --- /dev/null +++ b/reboot_wait_for.yml @@ -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!" + + +...