From efe6a044edf3dc7695bcd89604494d68e49f63fc Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 2 Sep 2021 01:53:48 +0500 Subject: [PATCH] Use shorter mode syntax --- tasks/apache/install.yml | 8 ++++---- tasks/certbot/install.yml | 8 ++++---- tasks/iptables/install.yml | 6 +++--- tasks/nginx/install.yml | 8 ++++---- tasks/usability.yml | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tasks/apache/install.yml b/tasks/apache/install.yml index 080822c..c6d6e48 100644 --- a/tasks/apache/install.yml +++ b/tasks/apache/install.yml @@ -7,7 +7,7 @@ file: state: directory path: '{{ item }}' - mode: 'u=rwx,g=rx,o=rx' + mode: 'u=rwx,go=rx' owner: root group: root with_items: @@ -23,7 +23,7 @@ template: src: templates/apache/ports.conf dest: '{{ common__apache__conf_dir }}/ports.conf' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root notify: common | Restart Apache @@ -38,7 +38,7 @@ copy: src: 'files/apache/syslog.conf' dest: '{{ common__apache__conf_available_dir }}/syslog.conf' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root notify: common | Restart Apache @@ -78,7 +78,7 @@ template: src: 'templates/apache/{{ item.type }}.conf' dest: '{{ common__apache__available_dir }}/{{ item.domain }}.conf' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root with_items: '{{ common__apache__sites }}' diff --git a/tasks/certbot/install.yml b/tasks/certbot/install.yml index f188595..da074ef 100644 --- a/tasks/certbot/install.yml +++ b/tasks/certbot/install.yml @@ -12,7 +12,7 @@ file: state: directory path: '{{ item }}' - mode: 'u=rwx,g=rx,o=rx' + mode: 'u=rwx,go=rx' owner: root group: root with_items: @@ -26,7 +26,7 @@ template: src: templates/certbot/cli.ini dest: '{{ common__certbot__conf_cli }}' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root @@ -34,7 +34,7 @@ template: src: templates/certbot/options-ssl-nginx.conf dest: '{{ common__certbot__conf_nginx }}' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root @@ -72,7 +72,7 @@ - name: Change group of Let's Encrypt certificates and chains file: path: '{{ item }}' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root with_items: "{{ certs_and_chains.files | map(attribute='path') | list }}" diff --git a/tasks/iptables/install.yml b/tasks/iptables/install.yml index 45ea47a..86f4e3c 100644 --- a/tasks/iptables/install.yml +++ b/tasks/iptables/install.yml @@ -7,7 +7,7 @@ file: state: directory path: '{{ common__iptables__conf_dir }}' - mode: 'u=rwx,g=rx,o=rx' + mode: 'u=rwx,go=rx' owner: root group: root @@ -15,7 +15,7 @@ template: src: templates/iptables/rules.v4 dest: '{{ common__iptables__conf_ipv4 }}' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root notify: common | Load iptables rules for IPv4 @@ -24,7 +24,7 @@ template: src: templates/iptables/rules.v6 dest: '{{ common__iptables__conf_ipv6 }}' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root notify: common | Load iptables rules for IPv6 diff --git a/tasks/nginx/install.yml b/tasks/nginx/install.yml index 973bcc9..d190d5a 100644 --- a/tasks/nginx/install.yml +++ b/tasks/nginx/install.yml @@ -7,7 +7,7 @@ file: state: directory path: '{{ item }}' - mode: 'u=rwx,g=rx,o=rx' + mode: 'u=rwx,go=rx' owner: root group: root with_items: @@ -38,7 +38,7 @@ copy: src: 'files/nginx/syslog.conf' dest: '{{ common__nginx__confd_dir }}/syslog.conf' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root notify: common | Restart Nginx @@ -54,7 +54,7 @@ template: src: 'templates/nginx/upstream.conf' dest: '{{ common__nginx__confd_dir }}/upstream-{{ item.name }}.conf' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root with_items: '{{ common__nginx__upstreams }}' @@ -64,7 +64,7 @@ template: src: 'templates/nginx/{{ item.type }}.conf' dest: '{{ common__nginx__available_dir }}/{{ item.domain }}.conf' - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root with_items: '{{ common__nginx__sites }}' diff --git a/tasks/usability.yml b/tasks/usability.yml index 3d1f1b9..5485fb6 100644 --- a/tasks/usability.yml +++ b/tasks/usability.yml @@ -11,7 +11,7 @@ copy: src: files/usability/vimrc.local dest: /etc/vim/vimrc.local - mode: 'u=rw,g=r,o=r' + mode: 'u=rw,go=r' owner: root group: root