change to legit tasks

This commit is contained in:
Chris Hammer 2023-04-28 22:10:29 -04:00
parent c7cce79783
commit c95c30e5ac
2 changed files with 28 additions and 9 deletions

10
.ansible-lint Normal file
View File

@ -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

View File

@ -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."
...