Re: [ansible-project] trying to parse a dict to add users: missing something easy...

2017-01-31 Thread Stankovic, Marko
Hi Dan, 1. If you use a quote at the start, you should close it only at the end. So this should work: when: "{{ item['status'] }} == 'enabled'" 2. In line above, you don't need {{ and thus quotes, when using when: 'always use {{ }} except when

[ansible-project] trying to parse a dict to add users: missing something easy...

2017-01-30 Thread Dan Geist
Hi, I'm trying to update user accounts on a number of linux hosts vi a dict containing the users. Here's a sample vars: "user_accounts": [ { "testusr": { "gecos": "Test User", "grp": "wheel",