Skip to content

Commit

Permalink
render_etc: fix file permissions syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Dec 31, 2024
1 parent c641d66 commit 8506558
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/cfg_openwrt/tasks/render_etc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
file:
path: "{{ configs_dir }}/etc/{{ item.path }}"
state: directory
mode: "755"
mode: "0755"
loop: "{{ lookup('community.general.filetree', role_path + '/templates/' + role) }}"
when: item.state == 'directory'
loop_control:
Expand All @@ -33,7 +33,7 @@
file:
path: "{{ configs_dir }}/etc/{{ item.path }}"
state: directory
mode: "755"
mode: "0755"
loop: "{{ lookup('community.general.filetree', role_path + '/files/' + role) }}"
when: item.state == 'directory'
loop_control:
Expand All @@ -44,7 +44,7 @@
template:
src: "{{ item.root }}/{{ item.path }}"
dest: "{{ configs_dir }}/etc/{{ item.path | regex_replace('.j2$', '') }}"
mode: "644"
mode: "0644"
loop: "{{ lookup('community.general.filetree', role_path + '/templates/' + role) }}"
when: item.path is regex('\.j2$')
loop_control:
Expand Down

0 comments on commit 8506558

Please sign in to comment.