Hacky little script to restart unbound (it doesn't start on boot due to selinux issues)

This commit is contained in:
Kevin Fenzi 2013-11-22 16:21:31 +00:00
parent 804d2948dd
commit 5e3dd3803f

View file

@ -0,0 +1,20 @@
# This playboook restarts unbound on a host
#
# requires --extra-vars="target=somevhostname"
#
- name: find instances
hosts: "{{ target }}"
accelerate: true
gather_facts: False
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