feat: move tag logic to playbook file
This commit is contained in:
parent
23c72d19c0
commit
982497467a
4 changed files with 13 additions and 25 deletions
|
|
@ -16,7 +16,16 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
# execute the role
|
# install updates
|
||||||
- name: "execute role: toolbox"
|
- name: "install updates"
|
||||||
ansible.builtin.include_role:
|
tags:
|
||||||
name: "toolbox"
|
- "update"
|
||||||
|
- "never"
|
||||||
|
ansible.builtin.include_tasks: "tasks/update.yaml"
|
||||||
|
|
||||||
|
# initiate reboot
|
||||||
|
- name: "initiate reboot"
|
||||||
|
tags:
|
||||||
|
- "reboot"
|
||||||
|
- "never"
|
||||||
|
ansible.builtin.include_tasks: "tasks/reboot.yaml"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
# install updates
|
|
||||||
- name: "install updates"
|
|
||||||
tags:
|
|
||||||
- "update"
|
|
||||||
- "never"
|
|
||||||
ansible.builtin.include_tasks: "update.yaml"
|
|
||||||
|
|
||||||
# initiate reboot
|
|
||||||
- name: "initiate reboot"
|
|
||||||
tags:
|
|
||||||
- "reboot"
|
|
||||||
- "never"
|
|
||||||
ansible.builtin.include_tasks: "reboot.yaml"
|
|
||||||
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
# reboot the system
|
# reboot the system
|
||||||
- name: "reboot the system"
|
- name: "reboot the system"
|
||||||
tags:
|
|
||||||
- "update"
|
|
||||||
- "never"
|
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
msg: "Reboot initiated by Ansible"
|
msg: "Reboot initiated by Ansible"
|
||||||
reboot_timeout: 120
|
reboot_timeout: 120
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
# install updates
|
# install updates
|
||||||
- name: "install updates"
|
- name: "install updates"
|
||||||
tags:
|
|
||||||
- "update"
|
|
||||||
- "never"
|
|
||||||
block:
|
block:
|
||||||
|
|
||||||
# install updates - alpine
|
# install updates - alpine
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue