On 21. juli 2016 00:09, Ian Dennison wrote:
Question 2: What is the syntax for referencing item.state in a conditional?# Extra step to set password age - name: users set passwd age on add shell: chage -d 0 {{ item.name }} when: "{{ item.state }}" == "present" and user_create.changed with_items: user_users ignore_errors: yes
Never use curly brackets in when:, they are implied. -- 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/f677367e-d67d-7d46-d84e-85ab05d7e8cf%40olstad.com. For more options, visit https://groups.google.com/d/optout.
