mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-15 06:39:30 +08:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user