Hi, I guess, init_script and env_script are much longer, that you thougth. Try: - debug: var=env_script to see which part of variable you want to use.
David Karban Linux server specialist/Specialista na správu linuxových serverů www.karban.eu 2015-10-04 11:31 GMT+02:00 <[email protected]>: > HI > I have a code in my playbook like this : > > * - name: Copy init scripts* > * template: src=file-server.conf.j2 dest=/etc/init/file-server.conf* > * register: init_script* > * notify: restart file-server* > > *- name: Copy env scripts* > * template: src=file-server.env.j2 dest=/etc/default/file-server.env* > * register: env_script* > * notify: restart file-server * > > I want to notify the handler for both tasks in one "handler". I tried : > * - name: restart file-server * > * service: name=file-server state=restarted* > * when: {{ item}}.changed* > * with_items:* > * - init_script* > * - env_script* > > but it doesn't work!! > Any ideas ? > > > -- > 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/b674135e-7011-48b6-bd12-1541682a1b35%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/b674135e-7011-48b6-bd12-1541682a1b35%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAOBFM953q6_jfjThEM4%3DPdig7ii-RdfF_aVhww220kEoNfe8Sg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
