From c9ea779c44e1e7e1640035db55ce21d311ad2c73 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 2 Aug 2016 09:36:15 +0100 Subject: [PATCH] Ensure that mode is a string With Ansible 2.x the mode parameter must lead with a zero. When a number is not quoted it may be read as an integer instead of a string, thus losing the leading zero. This patch ensures that the mode parameter is explicitly quoted. The task names are also adjusted to remove the unnecessary mention of 'swift' in the task. This is simply a cosmetic normalisation. Change-Id: I6f721eca8ba57a3f9834888f165ca3f61c0415b8 --- tasks/swift_init_systemd.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/swift_init_systemd.yml b/tasks/swift_init_systemd.yml index aba516d1..dfc46456 100644 --- a/tasks/swift_init_systemd.yml +++ b/tasks/swift_init_systemd.yml @@ -13,24 +13,24 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Create swift TEMP run dir +- name: Create TEMP run dir file: path: "/var/run/{{ program_name }}" state: directory owner: "{{ system_user }}" group: "{{ system_group }}" - mode: 02755 + mode: "02755" tags: - systemd-init - swift-init -- name: Create swift TEMP lock dir +- name: Create TEMP lock dir file: path: "/var/lock/{{ program_name }}" state: directory owner: "{{ system_user }}" group: "{{ system_group }}" - mode: 02755 + mode: "02755" tags: - systemd-init - swift-init