|
|
@ -163,8 +163,8 @@ This file is just mapping hosts to the roles they fulfill. Now, below is an exa
|
|
|
|
- restart ntpd
|
|
|
|
- restart ntpd
|
|
|
|
tags: ntp
|
|
|
|
tags: ntp
|
|
|
|
|
|
|
|
|
|
|
|
- name: be sure ntp is enabled
|
|
|
|
- name: be sure ntpd is running and enabled
|
|
|
|
service: name=ntp state=running enabled=yes
|
|
|
|
service: name=ntpd state=running enabled=yes
|
|
|
|
tags: ntp
|
|
|
|
tags: ntp
|
|
|
|
|
|
|
|
|
|
|
|
Here is an example handlers file. As a review, handlers are only fired when certain tasks report changes, and are run at the end
|
|
|
|
Here is an example handlers file. As a review, handlers are only fired when certain tasks report changes, and are run at the end
|
|
|
@ -172,8 +172,8 @@ of each play::
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
# file: common/handlers/main.yml
|
|
|
|
# file: common/handlers/main.yml
|
|
|
|
- name: restart ntp
|
|
|
|
- name: restart ntpd
|
|
|
|
service: name=ntp state=restarted
|
|
|
|
service: name=ntpd state=restarted
|
|
|
|
|
|
|
|
|
|
|
|
What This Organization Enables (Examples)
|
|
|
|
What This Organization Enables (Examples)
|
|
|
|
`````````````````````````````````````````
|
|
|
|
`````````````````````````````````````````
|
|
|
|