[ansible-project] module (ModuleName) is missing interpreter line

2017-12-25 Thread Seshadri K
I am upgrading from 1.9 to 2.0 and am running into a problem. When I do an ansible run, it fails with the error above. Everything works fine on Ansible 1.9 Thanks ! Seshadri -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe f

[ansible-project] Newbie variables problem while upgrading from 1.9 to 2.x

2018-01-08 Thread Seshadri K
In the snippet below, if state is absent, then obviously permissions can’t be set on something that is not present. My objective is to run “permissions” only when state is present; else, do nothing. acl: name={{secrets_dir}}/{{item.0.file}} state="{{'present' if item.0.pods is not def

[ansible-project] Re: Newbie variables problem while upgrading from 1.9 to 2.x

2018-01-10 Thread Seshadri K
Answering my own question: In Ansible 2.x, when state is absent, the permissions field can't be set. The way out here is to have two clauses (set ACL, remove ACL) each with a "when" like: name: task(set ACLs) ... ... when item.0.pods is not defined name: task(remove ACLs) ... ... when not(it

[ansible-project] Upgrade from 1.9 to 2.4 throws "recursive loop detected" error

2018-02-12 Thread Seshadri K
Ansible newbie alert ! I am upgrading from 1.9 to 2.4. A play that works fine in the former throws up the error: *recursive loop detected in template string: {{ service_down | default(1) }}"}* The last lines in the following two files are of relevance. Here is one of the plays that includes