Use shorter mode syntax
This commit is contained in:
parent
1fa94e5ccb
commit
efe6a044ed
|
@ -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 }}'
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue