Creating new user changes ansible tmp directory

I have a piece of ansible script which was running fine.

  user:
    name:     ""
    password: ""
    group:   ""
    groups:   ""
    uid:      ""
  with_items:
    - { name: perf, password: "", group: "perf",   groups: "perf", uid: 23564 }
    - { name: ora,   password: "",   group: "ora",     groups: "ora",          uid: 9965 }

The first user gets created as expected. The second user fails with the following error stating that tmp is not accessible.

"msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. 
Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. 
Failed command was: ( umask 77 && mkdir -p \"` echo /home/perf/.ansible/tmp `\"&& mkdir \"` echo /home/perf/.ansible/tmp/ansible-tmp-1619654689.74-17782-45103910875996 `\" 
&& echo ansible-tmp-1619654689.74-17782-45103910875996=\"` echo /home/perf/.ansible/tmp/ansible-tmp-1619654689.74-17782-45103910875996 `\" ), exited with result 1", "unreachable": true}], "warnings": ["The input password appears not to have been hashed. The 'password' argument must be encrypted for this module to work properly."]

Why is the ansible temp directory changed to /home/perf after a new user is created?



from Recent Questions - Stack Overflow https://ift.tt/2QwtZ7d
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation