ansible-plugin
ansible-plugin copied to clipboard
Ansible 2.9 and Specifying Ansible File Copier mode
Hi all,
As per:
https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.9.html#change-to-default-file-permissions
is there a way to set the mode? Quite a few of our Rundeck jobs failed last night as the default mode switched from 666 to 600.
Are logs are asking to set the mode, but I can't see any docs to set that?
Aug 15 01:00:08 xxx python: ansible-copy [WARNING] File '/tmp/18206-135410-xx.xx.xx-dispatch-script.tmp.sh' created with default permissions '600'. The previous default was '666'. Specify 'mode' to avoid this warning.
Would it be something like:
resources.source.1.config.ansible-copy-mode=666
Apologies if this is the wrong place to ask. I did search open and closed issues, but couldn't find mode
mentioned.
Thanks.
Or even to set the owner of the copied file after it's copied? Then perms are OK.
For now I've downgraded our version of ansible until we can use mode
. The problem is we run the ansible job as one user, but the file/script gets executed as another.
Ansible 2.7 uses: "mode": "0664",
which is fine.