This is the output when run with -vvvv:

TASK: [jenkins | Ensure jenkins .m2 directory does exist.] ********************

<vagrant> ESTABLISH CONNECTION FOR USER: mirko

<vagrant> REMOTE_MODULE file group=jenkins state=directory
path=/var/lib/jenkins/.m2/ owner=jenkins

<vagrant> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s
-o ControlPath="/Users/mirko/.ansible/cp/ansible-ssh-%h-%p-%r" -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 vagrant /bin/sh -c
'sudo -k && sudo -H -S -p "[sudo via ansible,
key=rbqtthfimuwodmabehkrbxsfieetegtb] password: " -u root /bin/sh -c
'"'"'echo SUDO-SUCCESS-rbqtthfimuwodmabehkrbxsfieetegtb;
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'"'"''

ok: [vagrant] => {"changed": false, "gid": 108, "group": "jenkins",
"mode": "0750", "owner": "jenkins", "path": "/var/lib/jenkins/.m2/",
"size": 4096, "state": "directory", "uid": 105}


TASK: [jenkins | Ensure jenkins .vnc directory does exist.] *******************

<vagrant> ESTABLISH CONNECTION FOR USER: mirko

<vagrant> REMOTE_MODULE file group=jenkins state=directory
path=/var/lib/jenkins/.vnc/ owner=jenkins

<vagrant> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s
-o ControlPath="/Users/mirko/.ansible/cp/ansible-ssh-%h-%p-%r" -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 vagrant /bin/sh -c
'sudo -k && sudo -H -S -p "[sudo via ansible,
key=pwxhksukesiwspzugtteoadivjokjvaq] password: " -u root /bin/sh -c
'"'"'echo SUDO-SUCCESS-pwxhksukesiwspzugtteoadivjokjvaq;
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'"'"''

changed: [vagrant] => {"changed": true, "gid": 108, "group":
"jenkins", "mode": "0750", "owner": "jenkins", "path":
"/var/lib/jenkins/.vnc/", "size": 4096, "state": "directory", "uid":
105}

I am using ansible-1.8.2 on Mac OS X, the provisioned host is a
vagrant instance.
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/


On Wed, Dec 10, 2014 at 8:46 PM, Mirko Friedenhagen
<[email protected]> wrote:
> Hello,
>
> I have the following in a role definition for jenkins:
>
> - name: Ensure jenkins .vnc directory does exist.
>   file:
>     path: /var/lib/jenkins/.vnc/
>     state: directory
>     owner: jenkins
>     group: jenkins
>     mode: 0750
>
> Whenever I run the playbook, this directory creation is always marked
> as changed.
>
> Immediately before this I run:
>
> - name: Ensure jenkins .m2 directory does exist.
>   file:
>     path: /var/lib/jenkins/.m2/
>     state: directory
>     owner: jenkins
>     group: jenkins
>     mode: 0750
>
> and this one is only created once and marked as unchanged.
>
> Regards Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> https://bitbucket.org/mfriedenhagen/

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK8jvqwVrwdNcgjd070m53TznXocBQgWx5nogf%3DmotcONXNKbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to