Skip to content

Commit 2fdf923

Browse files
committed
render_etc: fix file permissions syntax
1 parent de3189e commit 2fdf923

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/cfg_openwrt/tasks/render_etc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
file:
2222
path: "{{ configs_dir }}/etc/{{ item.path }}"
2323
state: directory
24-
mode: "755"
24+
mode: "0755"
2525
loop: "{{ lookup('community.general.filetree', role_path + '/templates/' + role) }}"
2626
when: item.state == 'directory'
2727
loop_control:
@@ -32,7 +32,7 @@
3232
file:
3333
path: "{{ configs_dir }}/etc/{{ item.path }}"
3434
state: directory
35-
mode: "755"
35+
mode: "0755"
3636
loop: "{{ lookup('community.general.filetree', role_path + '/files/' + role) }}"
3737
when: item.state == 'directory'
3838
loop_control:
@@ -43,7 +43,7 @@
4343
template:
4444
src: "{{ item.root }}/{{ item.path }}"
4545
dest: "{{ configs_dir }}/etc/{{ item.path | regex_replace('.j2$', '') }}"
46-
mode: "644"
46+
mode: "0644"
4747
loop: "{{ lookup('community.general.filetree', role_path + '/templates/' + role) }}"
4848
when: item.path is regex('\.j2$')
4949
loop_control:

0 commit comments

Comments
 (0)