Separate handlers into its own file.
This commit is contained in:
parent
3dae812515
commit
2c0a9857bc
6
debian/roles/common/handlers/main.yml
vendored
Normal file
6
debian/roles/common/handlers/main.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: restart rsyslog
|
||||
service: name=rsyslog state=restarted
|
||||
- name: restart cron
|
||||
service: name=cron state=restarted
|
||||
|
10
debian/roles/common/tasks/main.yml
vendored
10
debian/roles/common/tasks/main.yml
vendored
@ -1,7 +1,6 @@
|
||||
---
|
||||
- user: root
|
||||
hosts: unsetup
|
||||
tasks:
|
||||
# This playbook contains common plays that will be run all nodes.
|
||||
|
||||
- name: Install python-apt, aptitude, and debconf-utils
|
||||
shell: apt-get update && apt-get -y install python-apt aptitude debconf-utils
|
||||
- name: Do any package upgrades
|
||||
@ -25,8 +24,3 @@
|
||||
service: name=unbound enabled=yes
|
||||
- name: use local unbound instance for DNS
|
||||
shell: echo "nameserver ::1" > /etc/resolv.conf
|
||||
handlers:
|
||||
- name: restart rsyslog
|
||||
service: name=rsyslog state=restarted
|
||||
- name: restart cron
|
||||
service: name=cron state=restarted
|
||||
|
Loading…
Reference in New Issue
Block a user