feat: move tags around
This commit is contained in:
parent
b87cc03f2d
commit
4edcb29499
3 changed files with 53 additions and 49 deletions
|
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
# install updates
|
# install updates
|
||||||
- name: "install updates"
|
- name: "install updates"
|
||||||
tags: "update"
|
|
||||||
ansible.builtin.include_tasks: "update.yaml"
|
ansible.builtin.include_tasks: "update.yaml"
|
||||||
|
|
||||||
# initiate reboot
|
# initiate reboot
|
||||||
- name: "initiate rboot"
|
- name: "initiate reboot"
|
||||||
tags: "reboot"
|
|
||||||
ansible.builtin.include_tasks: "reboot.yaml"
|
ansible.builtin.include_tasks: "reboot.yaml"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
# reboot the system
|
# reboot the system
|
||||||
- name: "reboot the system"
|
- name: "reboot the system"
|
||||||
|
tags: "reboot"
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
msg: "Reboot initiated by Ansible"
|
msg: "Reboot initiated by Ansible"
|
||||||
reboot_timeout: 120
|
reboot_timeout: 120
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
# install updates - debian
|
# install updates
|
||||||
- name: "install updates - debian"
|
- name: "install updates"
|
||||||
|
tags: "update"
|
||||||
|
block:
|
||||||
|
|
||||||
|
# install updates - debian
|
||||||
|
- name: "install updates - debian"
|
||||||
when: 'ansible_os_family == "Debian"'
|
when: 'ansible_os_family == "Debian"'
|
||||||
block:
|
block:
|
||||||
|
|
||||||
|
|
@ -18,8 +23,8 @@
|
||||||
clean: true
|
clean: true
|
||||||
|
|
||||||
|
|
||||||
# install updates - rhel
|
# install updates - rhel
|
||||||
- name: "install updates - rhel"
|
- name: "install updates - rhel"
|
||||||
when: 'ansible_os_family == "RedHat"'
|
when: 'ansible_os_family == "RedHat"'
|
||||||
block:
|
block:
|
||||||
|
|
||||||
|
|
@ -42,8 +47,8 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
# install updates - suse
|
# install updates - suse
|
||||||
- name: "install updates"
|
- name: "install updates"
|
||||||
when: 'ansible_os_family == "Suse"'
|
when: 'ansible_os_family == "Suse"'
|
||||||
block:
|
block:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue