diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..bff83e9 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,10 @@ +skip_list: + - yaml[truthy] + - yaml[colons] + - no-changed-when + - line-length + - yaml[empty-lines] + - name[template] + - yaml[comments] + - meta-incorrect + - package-latest diff --git a/reboot_wait_for.yml b/reboot_wait_for.yml index efa95f9..280d1bf 100644 --- a/reboot_wait_for.yml +++ b/reboot_wait_for.yml @@ -1,25 +1,34 @@ --- -- name: Do something, reboot, do something else +- name: Update, reboot, Podman, reboot, relay status hosts: all become: false gather_facts: false tasks: - - name: Do something - ansible.builtin.debug: - msg: "hello. im doing. something. perhaps." + - name: Update system to latest package revisions + ansible.builtin.package: + name : '*' + state : latest - - name: I am. To be. Rebooted... + - name: Reboot to refresh system state ansible.builtin.reboot: - msg : "Goodbye. Cruel, world." - test_command : /bin/true - - name: Do something else + - name: Install Podman + ansible.builtin.package: + name : podman + state : present + + + - name: Reboot to refresh system state + ansible.builtin.reboot: + + + - name: Relay status ansible.builtin.debug: - msg: "hello. im doing... something... ELSE!" + msg: "{{ inventory_hostname }} has completed all operations successfully." ...