Hi
Thanks yep I think I got notify and register a bit mixed up
Thanks
Mark
Mark Olliver
Head of IT Operations
InfectiousMedia
On 9 Sep 2014 20:20, "Michael DeHaan" wrote:
> Hi Mark,
>
> It looks like you're not quite up to speed on how conditionals work yet,
> and that's ok.
>
> What you have
For completeness:
- name: configure supervisor
copy: src=supervisord.conf dest=/etc/supervisor/supervisord.conf
notify: restart supervisor
- name: configure supervisor defaults
copy: src=supervisor.default dest=/etc/default/supervisor
notify: restart supervisor
- name: copy over file
c
Hi Mark,
It looks like you're not quite up to speed on how conditionals work yet,
and that's ok.
What you have registered in the first call is the result of the operation,
which is a hash (or a dictionary, as Python calls it).
Each time you are then storing a *different* result in it, as you hav
You want "when: restart_supervisor|changed". See:
http://docs.ansible.com/playbooks_variables.html#filters-often-used-with-conditionals
However, by registering the variable each time, you're not going to get the
behavior you're after. If the first task changes, but the second two do
not, I don't
Hi,
I am getting the following error one the second run of my play book but i
am not sure why or what I should be doing to correct it.
fatal: [idb-13] => error while evaluating conditional: {u'changed': False,
u'group': u'root', u'uid': 0, 'dest': u'/usr/local/bin/im_supervisor',
'md5sum': 'a5d74