From 66ece66bb88e36c42260f5aae8c108bb53ac97f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Fri, 11 Jun 2021 11:27:14 +0200 Subject: [PATCH] Fix yamllint --- defaults/main.yml | 2 +- handlers/main.yml | 2 +- tasks/main.yml | 32 ++++++++++++++++---------------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index a229f97..fbd8ccf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,7 +2,7 @@ cloud_url: "owncloud.example.org" cloud_pg_user: "owncloud" cloud_pg_pass: "notSoSecurePassword" -cloud_pg_hash: "md53fc414b70561de0f2acb4f3b0985f5cd" # can be obtained with `echo "md5`echo -n 'notSoSecurePassword' | md5sum | awk '{print $1}'`"`` +cloud_pg_hash: "md53fc414b70561de0f2acb4f3b0985f5cd" # can be obtained with echo "md5`echo -n 'notSoSecurePassword' | md5sum | awk '{print $1}'`" cloud_data_dir: "/owncloud" # E-mail used to generate Let's Encrypt SSL certificate diff --git a/handlers/main.yml b/handlers/main.yml index ad3254e..82c6f07 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,4 @@ --- - name: restart nginx - service: name=nginx state=restarted + service: name=nginx state=restarted diff --git a/tasks/main.yml b/tasks/main.yml index 336b596..abb4629 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,7 +37,7 @@ - name: Creating the Owncloud PostgreSQL User postgresql_user: - name: {{ cloud_pg_user }} + name: "{{ cloud_pg_user }}" role_attr_flags: "CREATEDB,NOSUPERUSER,LOGIN" password: "{{ cloud_pg_hash }}" become: true @@ -47,7 +47,7 @@ - name: Creating the Owncloud PostgreSQL DB postgresql_db: name: owncloud - owner: {{ cloud_pg_user }} + owner: "{{ cloud_pg_user }}" become: true become_user: postgres tags: owncloud_db @@ -79,9 +79,9 @@ job: certbot renew --nginx >> /var/log/le-renew.log tags: owncloud_certificate,owncloud_proxy -#-------------------------------------------------- +# -------------------------------------------------- # NGINX Configuration -#-------------------------------------------------- +# -------------------------------------------------- - name: Configure Nginx template: @@ -104,9 +104,9 @@ tags: owncloud_proxy -#-------------------------------------------------- +# -------------------------------------------------- # Backup Configuration -#-------------------------------------------------- +# -------------------------------------------------- - name: Backup script template: src: backup.sh.j2 @@ -126,9 +126,9 @@ when: inventory_hostname in groups['maintenance_contract'] -#-------------------------------------------------- +# -------------------------------------------------- # Permissions -#-------------------------------------------------- +# -------------------------------------------------- - name: Set file rights on the ones to be owned by root file: path: "{{ item }}" @@ -138,7 +138,7 @@ recurse: true state: directory with_items: - - /var/www/owncloud/ + - /var/www/owncloud/ tags: owncloud_permissions - name: Set file rights on the ones to be owned by htuser @@ -150,10 +150,10 @@ recurse: true state: directory with_items: - - /var/www/owncloud/apps - - /var/www/owncloud/config - - /var/www/owncloud/updater - - "{{ cloud_data_dir }}/" + - /var/www/owncloud/apps + - /var/www/owncloud/config + - /var/www/owncloud/updater + - "{{ cloud_data_dir }}/" tags: owncloud_permissions - name: Set execution right on occ @@ -163,7 +163,7 @@ group: www-data mode: +x with_items: - - /var/www/owncloud/occ + - /var/www/owncloud/occ tags: owncloud_permissions - name: Limit rights on htaccess @@ -173,7 +173,7 @@ group: www-data mode: '0644' with_items: - - /var/www/owncloud/.htaccess - - "{{ cloud_data_dir }}/.htaccess" + - /var/www/owncloud/.htaccess + - "{{ cloud_data_dir }}/.htaccess" ignore_errors: true tags: owncloud_permissions -- GitLab