Doubts using local_action, module, and with_items all together

Hi guys,

  • I looked for many places but could not find an answer of why this could be happening. I have the following play and its giving lots of headaches:

Environment:

`
$ uname -v
#39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017
$ uname -r
4.10.0-35-generic
$ pip freeze | grep ansible

ansible==2.5.0
ansible-lint==3.4.16
$ python --version

Python 2.7.12+

`

Code being tested:

`

with_items is a task keyword, not a module option, 'outdent' it to
match local_action

Hi Brian,

  • First of all, thanks for the fast response. I’ve made what you asked:

`

you are also incorrectly indenting all the options for file and you
have both module: and file: ... which does not seem as what you wanted
to do.

Hi Brian,

  • You were right. I’ve made these changes and it worked.

`