mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 02:20:51 +08:00
Attempt to run the restart_unbound sequence on reboot if necessary.
This commit is contained in:
@@ -10,11 +10,4 @@
|
||||
user: root
|
||||
|
||||
tasks:
|
||||
- name: set selinux permissive
|
||||
selinux: policy=targeted state=permissive
|
||||
|
||||
- name: restart unbound
|
||||
service: name=unbound state=restarted
|
||||
|
||||
- name: set selinux back to enforcing
|
||||
selinux: policy=targeted state=enforcing
|
||||
- include: $tasks/restart_unbound.yml
|
||||
|
||||
@@ -96,6 +96,15 @@
|
||||
command: /root/fix-iptables.sh
|
||||
when: inventory_hostname_short.startswith('serverbeach')
|
||||
|
||||
- name: Fix unbound if necessary
|
||||
# intersection - hosts that are in our dynamic group and also in unbound-dns
|
||||
hosts: "myvms_new:&unbound-dns"
|
||||
accelerate: true
|
||||
user: root
|
||||
|
||||
tasks:
|
||||
- include: $tasks/restart_unbound.yml
|
||||
|
||||
# - name: get info on guests (postreboot)
|
||||
# virt: command=info
|
||||
# register: vminfo_post
|
||||
|
||||
10
tasks/restart_unbound.yml
Normal file
10
tasks/restart_unbound.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# Restart unbound after reboots.
|
||||
|
||||
- name: set selinux permissive
|
||||
selinux: policy=targeted state=permissive
|
||||
|
||||
- name: restart unbound
|
||||
service: name=unbound state=restarted
|
||||
|
||||
- name: set selinux back to enforcing
|
||||
selinux: policy=targeted state=enforcing
|
||||
Reference in New Issue
Block a user