Re: [ansible-project] Ansible variable with find

2017-07-03 Thread Anfield
Great explanation. Thanks -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to a

Re: [ansible-project] Ansible variable with find

2017-06-30 Thread Kai Stian Olstad
On 30. juni 2017 21:03, Anfield wrote: Thanks! But how does it differentiate between just the text user, and the actual variable user? Or does it just know because user is defined as a variable at the top in the vars section? Text is indicated with single or double quote, so 'user' or "user". W

Re: [ansible-project] Ansible variable with find

2017-06-30 Thread Anfield
Thanks! But how does it differentiate between just the text user, and the actual variable user? Or does it just know because user is defined as a variable at the top in the vars section? I tried that out and it works well. > -- You received this message because you are subscribed to the Goog

Re: [ansible-project] Ansible variable with find

2017-06-28 Thread Kai Stian Olstad
On 28. juni 2017 01:55, Anfield wrote: Running the playbook below and wondering whats the correct syntax so I can use a variable within the find statement below This line is in question - when: p.stdout.find"{{('user')}}" != -1 This would be correct without a variable when: p.stdout.fin

[ansible-project] Ansible variable with find

2017-06-27 Thread Anfield
Running the playbook below and wondering whats the correct syntax so I can use a variable within the find statement below This line is in question - when: p.stdout.find"{{('user')}}" != -1 This would be correct without a variable when: p.stdout.find('daniel') != -1 How do I do this with