aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/install-coverity
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-26 18:27:22 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-11-27 09:30:28 +0100
commitd8e2f0a68234aefcffde3723b84ce3ac69ee2c3e (patch)
treebd1cbd7778aa8ab7ade253ba554877f03ab0b7f6 /ansible/roles/install-coverity
parent55c6811513750a89b822ba506f7823e67cc5a6bf (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-coverity')
-rw-r--r--ansible/roles/install-coverity/tasks/main.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/ansible/roles/install-coverity/tasks/main.yml b/ansible/roles/install-coverity/tasks/main.yml
index 200a349..886dda2 100644
--- a/ansible/roles/install-coverity/tasks/main.yml
+++ b/ansible/roles/install-coverity/tasks/main.yml
@@ -3,7 +3,7 @@
copy:
src: "{{ coverity_installer_file }}"
dest: "/tmp/{{ coverity_installer_file }}"
- mode: 750
+ mode: 0750
register: coverity_copy
ignore_errors: yes
tags: [coverity]
@@ -36,4 +36,3 @@
msg: "Ansible can not find {{ coverity_installer_file }}"
when: coverity_copy.failed
tags: [coverity]
-