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
This commit is contained in:
Jesse Pretorius 2016-08-02 09:36:15 +01:00
parent 99bfe27d7f
commit c9ea779c44

View File

@ -13,24 +13,24 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Create swift TEMP run dir - name: Create TEMP run dir
file: file:
path: "/var/run/{{ program_name }}" path: "/var/run/{{ program_name }}"
state: directory state: directory
owner: "{{ system_user }}" owner: "{{ system_user }}"
group: "{{ system_group }}" group: "{{ system_group }}"
mode: 02755 mode: "02755"
tags: tags:
- systemd-init - systemd-init
- swift-init - swift-init
- name: Create swift TEMP lock dir - name: Create TEMP lock dir
file: file:
path: "/var/lock/{{ program_name }}" path: "/var/lock/{{ program_name }}"
state: directory state: directory
owner: "{{ system_user }}" owner: "{{ system_user }}"
group: "{{ system_group }}" group: "{{ system_group }}"
mode: 02755 mode: "02755"
tags: tags:
- systemd-init - systemd-init
- swift-init - swift-init