I have a list of modules I would like to deploy. With certain modules, I 
want to run a specific command against it. For example, if the module is a 
PHP or PERL module, I want to modify the ownership of the folder. If it's 
anything else, ignore the task. 

The task below fails

- name: Modify ownership
      shell: chown www:www {{ module_path }}
      with_dict: deploy_modules
      when: '"{{ item.key }} == "php" or {{ item.key }} == "perl"'

TASK: [web | Modify ownership] 
*****************************************************
fatal: [web01] => error while evaluating conditional: "php == "perl" or php 
== "php"
fatal: [web02] => error while evaluating conditional: "php == "perl" or php 
== "php"

-- 
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/11fc9d73-a04b-42c3-955b-d555015253b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to