copr-hypervisor: more convenient reboot trigger, take #2

If we want to reboot all x86 machines, it is enough to do:
$ sudo rbac-playbook groups/copr-hypervisor.yml -l '*x86*' -k trigger_reboot
This commit is contained in:
Pavel Raiskup 2023-08-22 08:52:52 +02:00
parent 8e10725cc3
commit 76ea698369
3 changed files with 8 additions and 6 deletions

View file

@ -12,6 +12,8 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- include_role: name=copr/reboot
tags: always
- import_role: name=base
- import_role: name=hosts
- import_role: name=rkhunter

View file

@ -1,10 +1,4 @@
---
- name: Unconditionally reboot the machine with all defaults
ansible.builtin.reboot:
tags:
- never
- reboot_copr_hypervisor
- name: OpenStack package repository for RHEL8, noarch only
copy:
content: |

View file

@ -0,0 +1,6 @@
---
- name: Unconditionally reboot the machine with all defaults
ansible.builtin.reboot:
tags:
- never
- trigger_reboot