Hi all,
if any play in a playbook actually changes something, I want to display a
'please restart something' message to the playbook user.
Is there a way to get the 'PLAY RECAP' changed variable value from a
playbook ?
something like this pseudo playbook:
---
- hosts: all
tasks:
- name: Do something
shell: doit.sh
- debug: msg="Please restart server to effectuate changes..."
when: play_recap | Changed
I don't want a restart to get initiated from the playbook. The playbook
should be used to possibly make a configuration change,
and when it did change something, the user should be notified to schedule
the required restart later..
Wasn't able to find anything using on this using Google so far..
Thanks for any hints.
pieter.
--
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/b215b3d7-d019-4e90-857e-411f739e8cde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.