let me explain this a little better
You want to set the mode to octal 0600 which is the same as decimal
420. So either of these would be fine:
mode: 0600
mode: 420
Ansible's template module also accepts string versions of the mode.
The strings are similar to what chmod would accept on
Actually, that brings up a follow-up question. why doesn't it treat
it that way in the first example, when I don't use a loop?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails fro
Perfect! Thank you Kai Stian Olstad
On Thursday, September 21, 2017 at 12:13:29 PM UTC-6, Kai Stian Olstad
wrote:
>
> On 21. sep. 2017 20:03, John Harmon wrote:
> > If I do the following it works (putting quotes around the mode). Can
> > anybody explain to my why?
>
> Yes, Ansible interpret
On 21. sep. 2017 20:03, John Harmon wrote:
If I do the following it works (putting quotes around the mode). Can
anybody explain to my why?
Yes, Ansible interprets number starting with 0 as octal number.
0644 = 6*8^2 + 4*8^1 + 4*8^0 = 420 decimal.
So to avoid this conversion you need to use th
If I do the following it works (putting quotes around the mode). Can
anybody explain to my why?
>
> - name: test
> template:
> src: "files/sssd.conf"
> dest: "/etc/sssd/sssd.conf"
> mode: 0600
> group: root
> owner: root
>
> - name: Add/Update required files
> template:
>