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:
parent
8e10725cc3
commit
76ea698369
3 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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: |
|
||||
|
|
6
roles/copr/reboot/tasks/main.yml
Normal file
6
roles/copr/reboot/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Unconditionally reboot the machine with all defaults
|
||||
ansible.builtin.reboot:
|
||||
tags:
|
||||
- never
|
||||
- trigger_reboot
|
Loading…
Add table
Add a link
Reference in a new issue