On 12. des. 2016 20:06, John Oliver wrote:
Let's say I have a playbook that looks for and changes lines in sshd_config
if necessary.  Then I want the sshd service to be restarted only if at
least one of those actions has taken place.  Is there a way to evaluate for
that without registering a variable for the completion of each and every
play?

Check out handlers and notify.
https://docs.ansible.com/ansible/playbooks_intro.html#handlers-running-operations-on-change

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b652a10f-9897-139e-d105-d3e03da5eb2a%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to