From cf15a5f3d965c7cc5b694b6e96ff00d6fe3ab745 2024-09-09 16:01:43 From: Branko Majic Date: 2024-09-09 16:01:43 Subject: [PATCH] MAR-218: Quote all octal modes to avoid ambiguity due to changes in YAML standard. --- diff --git a/docs/usage.rst b/docs/usage.rst index 0de304ab18a743a6afe2185443f4b810b6d75e19..bf49bbbef72fe4f401ca571cb6180b09b7bef17f 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -1591,7 +1591,7 @@ Before we start, here is a couple of useful pointers regarding the ansible.builtin.file: path: "/var/www/nextcloud.example.com/data" state: directory - mode: 02770 + mode: "02770" owner: "admin-nextcloud_example_com" group: "web-nextcloud_example_com" @@ -1599,7 +1599,7 @@ Before we start, here is a couple of useful pointers regarding the ansible.builtin.file: path: "/var/www/nextcloud.example.com/nextcloud/config" state: directory - mode: 02750 + mode: "02750" owner: "admin-nextcloud_example_com" group: "web-nextcloud_example_com" @@ -1614,7 +1614,7 @@ Before we start, here is a couple of useful pointers regarding the path: "/var/www/nextcloud.example.com/data/nextcloud.log" owner: "admin-nextcloud_example_com" group: "web-nextcloud_example_com" - mode: 0660 + mode: "0660" - name: Symlink the default path used by the web server for finding application files ansible.builtin.file: @@ -1648,7 +1648,7 @@ Before we start, here is a couple of useful pointers regarding the dest: "/var/www/nextcloud.example.com/install_nextcloud.py" owner: "admin-nextcloud_example_com" group: "web-nextcloud_example_com" - mode: 0700 + mode: "0700" when: "not nextcloud_installed" - name: Install application @@ -1675,7 +1675,7 @@ Before we start, here is a couple of useful pointers regarding the dest: "/var/www/nextcloud.example.com/nextcloud/config/local.config.php" owner: "admin-nextcloud_example_com" group: "web-nextcloud_example_com" - mode: 0640 + mode: "0640" 5. Set-up files that are deployed by the role. @@ -1936,7 +1936,7 @@ on the safe side: state: directory owner: admin-wiki_example_com group: web-wiki_example_com - mode: 02750 + mode: "02750" - name: Start Django project for the Wiki website ansible.builtin.command: "/var/www/wiki.example.com/virtualenv/bin/exec django-admin startproject wiki_example_com /var/www/wiki.example.com/code" @@ -1950,7 +1950,7 @@ on the safe side: ansible.builtin.copy: src: "{{ item }}" dest: "/var/www/wiki.example.com/code/wiki_example_com/{{ item }}" - mode: 0640 + mode: "0640" owner: admin-wiki_example_com group: web-wiki_example_com with_items: @@ -1976,7 +1976,7 @@ on the safe side: dest: "/var/www/wiki.example.com/code/create_superuser.py" owner: admin-wiki_example_com group: web-wiki_example_com - mode: 0750 + mode: "0750" - name: Create initial superuser ansible.builtin.command: "/var/www/wiki.example.com/virtualenv/bin/exec ./create_superuser.py"