projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
roles/openwrt-image: Add support for setting file modes
[noc.git]
/
ansible
/
roles
/
openwrt-image
/
tasks
/
prepare.yml
diff --git
a/ansible/roles/openwrt-image/tasks/prepare.yml
b/ansible/roles/openwrt-image/tasks/prepare.yml
index
056daf3
..
29e24cd
100644
(file)
--- a/
ansible/roles/openwrt-image/tasks/prepare.yml
+++ b/
ansible/roles/openwrt-image/tasks/prepare.yml
@@
-19,6
+19,7
@@
copy:
src: "{{ item.file }}"
dest: "{{ openwrt_imgbuilder_files }}/{{ item.key }}"
copy:
src: "{{ item.file }}"
dest: "{{ openwrt_imgbuilder_files }}/{{ item.key }}"
+ mode: "{{ item.mode | default(0644) }}"
with_dict: "{{ openwrt_mixin }}"
when: '"file" in item'
loop_control:
with_dict: "{{ openwrt_mixin }}"
when: '"file" in item'
loop_control:
@@
-28,6
+29,7
@@
copy:
content: "{{ item.value }}"
dest: "{{ openwrt_imgbuilder_files }}/{{ item.key }}"
copy:
content: "{{ item.value }}"
dest: "{{ openwrt_imgbuilder_files }}/{{ item.key }}"
+ mode: "{{ item.mode | default(0644) }}"
with_dict: "{{ openwrt_mixin }}"
when: '"content" in item'
loop_control:
with_dict: "{{ openwrt_mixin }}"
when: '"content" in item'
loop_control: