use default with omit
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode | default(omit) }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: "top-view-photo-of-people-near-wooden-table-3183150_small.jpg", dest: "/usr/share/jitsi-meet/images/welcome-background-cust.png", mode: '0644 '}
|
- { src: "top-view-photo-of-people-near-wooden-table-3183150_small.jpg", dest: "/usr/share/jitsi-meet/images/welcome-background-cust.png", mode: '0644 '}
|
||||||
- { src: "welcomePageAdditionalContent.html", dest: "/usr/share/jitsi-meet/static/", mode: '0644' }
|
- { src: "welcomePageAdditionalContent.html", dest: "/usr/share/jitsi-meet/static/", mode: '0644' }
|
||||||
@@ -79,6 +79,6 @@
|
|||||||
copy:
|
copy:
|
||||||
dest: "/home/rene/"
|
dest: "/home/rene/"
|
||||||
src: update_jitsi.sh
|
src: update_jitsi.sh
|
||||||
mode: '0755' # not required. The permissions of the destination file or directory. For those used to C(/usr/bin/chmod) remember that modes are actually octal numbers. You must either add a leading zero so that Ansible's YAML parser knows it is an octal number (like C(0644) or C(01777))or quote it (like C('644') or C('1777')) so Ansible receives a string and can do its own conversion from string into number. Giving Ansible a number without following one of these rules will end up with a decimal number which will have unexpected results. As of Ansible 1.8, the mode may be specified as a symbolic mode (for example, C(u+rwx) or C(u=rw,g=r,o=r)). As of Ansible 2.3, the mode may also be the special string C(preserve). C(preserve) means that the file will be given the same permissions as the source file.
|
mode: '0755'
|
||||||
owner: 'rene'
|
owner: 'rene'
|
||||||
group: 'rene'
|
group: 'rene'
|
||||||
Reference in New Issue
Block a user