From 2b305ed283729174e33795f249c43637de048f08 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 2 Aug 2016 09:41:06 +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 'neutron' in the task. This is simply a cosmetic normalisation. The tags which were recently added are also removed as they do not conform to the agreed tag standard set. Change-Id: Ibf0cc334ea3643660020654eaac17aeeb69973fe --- tasks/neutron_init_systemd.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tasks/neutron_init_systemd.yml b/tasks/neutron_init_systemd.yml index 4424a7d0..2101dede 100644 --- a/tasks/neutron_init_systemd.yml +++ b/tasks/neutron_init_systemd.yml @@ -13,27 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Create neutron TEMP run dir +- name: Create TEMP run dir file: path: "/var/run/{{ program_name }}" state: directory owner: "{{ system_user }}" group: "{{ system_group }}" - mode: 02755 - tags: - - systemd-init - - neutron-init + mode: "02755" -- name: Create neutron TEMP lock dir +- name: Create TEMP lock dir file: path: "/var/lock/{{ program_name }}" state: directory owner: "{{ system_user }}" group: "{{ system_group }}" - mode: 02755 - tags: - - systemd-init - - neutron-init + mode: "02755" - name: Create tempfile.d entry template: