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
This commit is contained in:
parent
5bbf93cd76
commit
2b305ed283
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user