diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-26 18:27:22 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-27 09:30:28 +0100 |
commit | d8e2f0a68234aefcffde3723b84ce3ac69ee2c3e (patch) | |
tree | bd1cbd7778aa8ab7ade253ba554877f03ab0b7f6 /ansible/roles/install-poky-sdk | |
parent | 55c6811513750a89b822ba506f7823e67cc5a6bf (diff) |
ansible: Fix several file permission mask format
From ansible documentation [1]:
"""
For those used to /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 0644 or 01777) or quote it
(like '644' or '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.
"""
[1] https://docs.ansible.com/ansible/latest/modules/template_module.html?highlight=template
Change-Id: I91008927c50016a837420c4249b5f69b9153572e
Diffstat (limited to 'ansible/roles/install-poky-sdk')
-rw-r--r-- | ansible/roles/install-poky-sdk/tasks/main.yml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ansible/roles/install-poky-sdk/tasks/main.yml b/ansible/roles/install-poky-sdk/tasks/main.yml index 85b310a..7f95dce 100644 --- a/ansible/roles/install-poky-sdk/tasks/main.yml +++ b/ansible/roles/install-poky-sdk/tasks/main.yml @@ -12,7 +12,7 @@ copy: src: "{{ poky_installer_file }}" dest: "/tmp/{{ poky_installer_file }}" - mode: 750 + mode: 0750 register: poky_copy ignore_errors: yes tags: [poky] @@ -45,4 +45,3 @@ msg: "Ansible can not find or copy {{ poky_installer_file }}" when: poky_copy.failed tags: [poky] - |