summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2016-04-11 12:46:47 +0100
committerBen Copeland <ben.copeland@linaro.org>2016-04-12 09:21:32 +0000
commitce48ff437dd80e6966ca4ffb304ab16eacf6b2ae (patch)
tree42ac7b650e02ad036c89a6245801e59ed9caa6bb /per-service
parent2947df58152404393700cfb3e7911ff202a2e6b6 (diff)
downloadansible-playbooks-ce48ff437dd80e6966ca4ffb304ab16eacf6b2ae.tar.gz
Add leading 0 to file permissions
Ansible 2.0 breaks on 3 digit octal permissions. Adding leading 0 to octal permissions will pass lint checks. Change-Id: Ica56b2fd00be4f123f39f68401fea547f901931a Signed-off-by: Ben Copeland <ben.copeland@linaro.org> Reviewed-on: https://review.linaro.org/11314 Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/gerrit-bot-user/tasks/main.yml4
-rw-r--r--per-service/git-servers/roles/gerrit-setup/tasks/gerrit.yml2
2 files changed, 3 insertions, 3 deletions
diff --git a/per-service/git-servers/roles/gerrit-bot-user/tasks/main.yml b/per-service/git-servers/roles/gerrit-bot-user/tasks/main.yml
index 27d1b26..ff8e9ab 100644
--- a/per-service/git-servers/roles/gerrit-bot-user/tasks/main.yml
+++ b/per-service/git-servers/roles/gerrit-bot-user/tasks/main.yml
@@ -6,13 +6,13 @@
- name: Install linaro-gerrit-bot private SSH key
copy: src={{secrets_dir}}/files/linaro-gerrit-bot.key dest=/home/{{git_user}}/.ssh/id_rsa
- owner={{git_user}} mode=600 backup=yes
+ owner={{git_user}} mode=0600 backup=yes
tags:
- secrets
- name: Install linaro-gerrit-bot public SSH key
copy: src={{secrets_dir}}/files/linaro-gerrit-bot.pub dest=/home/{{git_user}}/.ssh/id_rsa.pub
- owner={{git_user}} mode=600 backup=yes
+ owner={{git_user}} mode=0600 backup=yes
tags:
- secrets
diff --git a/per-service/git-servers/roles/gerrit-setup/tasks/gerrit.yml b/per-service/git-servers/roles/gerrit-setup/tasks/gerrit.yml
index 7e3041e..a5f5d0d 100644
--- a/per-service/git-servers/roles/gerrit-setup/tasks/gerrit.yml
+++ b/per-service/git-servers/roles/gerrit-setup/tasks/gerrit.yml
@@ -59,7 +59,7 @@
# NOTE: gerrit forks in wild ways that don't work with upstart
- name: Setup a Sys-V init script
- template: src=gerrit.sysv dest=/etc/init.d/gerrit mode=755
+ template: src=gerrit.sysv dest=/etc/init.d/gerrit mode=0755
register: sysv
- name: Run update-rc.d when Sys-V script is created