[ansible-project] Re: file module - state=touch always finishes as changed

2015-12-28 Thread Koji Tanaka
RESOLVED. I found that adding "changed_when: False" does the trick, as suggested on this issue. https://github.com/ansible/ansible-modules-core/issues/170 Thank you, Koji On Mon, Dec 28, 2015 at 10:27 PM, Koji Tanaka wrote: > Hello Ansible Community, > > I'd like to cre

[ansible-project] file module - state=touch always finishes as changed

2015-12-28 Thread Koji Tanaka
Hello Ansible Community, I'd like to create a task which ensures a file exists(if a file doesn't exist, it should create an empty file). Now I use file module's state=touch, but it always finishes as changed. Is there a way to prevent it from touching when file exists? Best regards, Koji -- You

Re: [ansible-project] user module doesn't work properly

2015-10-21 Thread Koji Tanaka
ks so much again! Bests, Koji On Wed, Oct 21, 2015 at 5:49 AM, Jean-Yves LENHOF wrote: > Le 2015-10-20 21:07, Koji Tanaka a écrit : >> >> Hello Ansible Community, >> >> I have a task described below, and it works fine if the user account >> has been managed by An

[ansible-project] user module doesn't work properly

2015-10-20 Thread Koji Tanaka
Hello Ansible Community, I have a task described below, and it works fine if the user account has been managed by Ansible since the moment of the user account creation. However, this task always ends with "changed" status when I try to manage an existing user account on an existing server. Has