What you actually want is this: >>> oct(4755) '0o11223' -> rwsr-xr-x
But this is what you got: >>> oct(658) '0o1222' -> -w--w--wt In your case Ansible dropping the trailing "3". Just use 04755 as mode argument. Am Montag, 22. Mai 2017 16:19:12 UTC+2 schrieb Michael Pöllinger: > > Hi folks. > > Perhaps i´m wrong, but if i set a file mode with: > - file: > path: /usr/lib/rssh/rssh_chroot_helper > mode: 4755 > > I would expect something like: > -rwsr-xr-x 1 root root 30728 Nov 8 2014 rssh_chroot_helper > > But i get this as result: > --w--w--wt 1 root root 30728 Nov 8 2014 rssh_chroot_helper > > > Am i going wrong or is this a bug? > > kind regards > Michael > > -- 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/36f7538e-eecd-43b0-84d4-504ed789cb26%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
