Permalink
Browse files

change modes to be quoted to avoid problems with some permissions bei…

…ng parsed as decimal
  • Loading branch information...
tykling committed Nov 19, 2016
1 parent 7d9946f commit 7cf0d2f94d25ce4927759c630f59f30eb311911f
@@ -43,7 +43,7 @@
dest: "/usr/local/etc/rc.d/djangomanage"
owner: root
group: wheel
mode: 555
mode: "555"

- name: Configure djangomanage_path
become: yes
@@ -28,7 +28,7 @@
- name: Make manage.py executable
file:
path: "{{ django_root }}manage.py"
mode: 0755
mode: "755"
tags:
- codedeploy

@@ -10,14 +10,14 @@
template:
src: dovecot-sql.conf.j2
dest: /usr/local/etc/dovecot/dovecot-sql.conf
mode: 600
mode: "600"

- name: Create mailbox folder
become: yes
file:
path: /usr/mailboxes
state: directory
mode: 0700
mode: "700"
owner: "{{ dovecot_vmail_username}}"
group: "{{ dovecot_vmail_groupname}}"

@@ -11,7 +11,7 @@
file:
path: /var/log/dovecot.log
state: touch
mode: 0600
mode: "600"

- name: Reload syslogd
become: yes
@@ -50,7 +50,7 @@
path: "/usr/local/etc/rc.d/etherpad"
owner: root
group: wheel
mode: 0555
mode: "555"

- name: Enable etherpad-lite in rc.conf
sysrc:
@@ -18,7 +18,7 @@
copy:
owner: root
group: wheel
mode: 644
mode: "644"
src: FreeBSD.conf
dest: /usr/local/etc/pkg/repos/FreeBSD.conf

@@ -31,7 +31,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
src: poudriere.tyknet.dk.cert
dest: /usr/local/etc/ssl/certs/poudriere.cert

@@ -13,7 +13,7 @@
copy:
owner: root
group: wheel
mode: 644
mode: "644"
src: ezjailflavour/
dest: "/usr/jails/flavours/{{ ezjail_flavourname }}/"

@@ -34,7 +34,7 @@
copy:
owner: 1337
group: 1337
mode: 644
mode: "644"
content: "{{ ezjail_flavour_ansible_authorized_keys_file }}"
dest: "/usr/jails/flavours/{{ ezjail_flavourname }}/usr/home/ansible/.ssh/authorized_keys"

@@ -44,5 +44,5 @@
dest: "/usr/jails/flavours/{{ ezjail_flavourname }}/etc/rc.d/ezjail.flavour.{{ ezjail_flavourname }}"
owner: root
group: wheel
mode: 0744
mode: "744"

@@ -3,7 +3,7 @@
copy:
owner: root
group: wheel
mode: 755
mode: "755"
src: 999.zfs-mirror
dest: /usr/local/etc/periodic/daily/999.zfs-mirror

@@ -27,5 +27,5 @@
dest: /usr/local/www/mediawiki/resources/assets/
owner: root
group: wheel
mode: 0755
mode: "755"

@@ -12,39 +12,39 @@
file:
owner: root
group: wheel
mode: 600
mode: "600"
path: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}"
state: directory

- name: Create letsencrypt meta.json
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ letsencrypt_meta_json }}"
dest: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}/meta.json"

- name: Create letsencrypt private_key.json
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ letsencrypt_private_key_json }}"
dest: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}/private_key.json"

- name: Create letsencrypt regr.json
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ letsencrypt_regr_json }}"
dest: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}/regr.json"

- name: Create letsencrypt webroot folder
file:
owner: root
group: wheel
mode: 655
mode: "655"
path: "/tmp/letsencrypt-auto"
state: directory

@@ -64,7 +64,7 @@
copy:
owner: root
group: wheel
mode: 0600
mode: "600"
content: "{{ item.value.content }}"
dest: "/usr/local/etc/nginx/{{ item.value.filename }}"
with_dict: "{{ nginx_extra_configs | default({}) }}"
@@ -83,7 +83,7 @@
copy:
owner: www
group: www
mode: 0600
mode: "600"
content: "{{ item.value.content }}"
dest: "/usr/local/etc/nginx/{{ item.value.filename }}"
with_dict: "{{ nginx_htpasswd_files | default({}) }}"
@@ -103,7 +103,7 @@
copy:
owner: root
group: wheel
mode: 755
mode: "755"
src: prime_nginx_ocsp.sh
dest: /usr/local/bin/prime_nginx_ocsp.sh
when: nginx_proxy | default(False)
@@ -130,7 +130,7 @@
copy:
owner: root
group: wheel
mode: 755
mode: "755"
src: nginx-newsyslog.conf
dest: /usr/local/etc/newsyslog.conf.d/nginx

@@ -46,7 +46,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ item.value.privkey }}"
dest: "/usr/local/etc/nginx/certificates/{{ item.value.hostname }}.key"
with_dict: '{{ vhosts_cert_privkeys | default({}) }}'
@@ -55,7 +55,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ item.value.certificate }}"
dest: "/usr/local/etc/nginx/certificates/{{ item.value.hostnames[0] }}.crt"
with_dict: "{{ vhosts }}"
@@ -71,7 +71,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ item.value.content }}"
dest: "/usr/local/etc/nginx/vhosts/{{ item.value.filename }}.conf"
with_dict: "{{ custom_vhosts | default({}) }}"
@@ -4,7 +4,7 @@
file:
path: /usr/webhomes
state: directory
mode: 0755
mode: "755"

- name: Create webusers group
become: yes
@@ -17,7 +17,7 @@
file:
path: "/usr/webhomes/{{ item.key }}chroot"
state: directory
mode: 0755
mode: "755"
with_dict: "{{ webusers }}"
tags:
- usermanagement
@@ -39,7 +39,7 @@
file:
path: "/usr/webhomes/{{ item.key }}chroot/{{ item.key }}/wwwroot"
state: directory
mode: 0755
mode: "755"
owner: "{{ item.key }}"
group: webusers
with_dict: "{{ webusers }}"
@@ -14,7 +14,7 @@
file:
owner: root
group: wheel
mode: 600
mode: "600"
path: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}"
state: directory

@@ -23,7 +23,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ letsencrypt_meta_json }}"
dest: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}/meta.json"

@@ -32,7 +32,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ letsencrypt_private_key_json }}"
dest: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}/private_key.json"

@@ -41,7 +41,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
content: "{{ letsencrypt_regr_json }}"
dest: "/usr/local/etc/letsencrypt/accounts/{{ letsencrypt_server }}/directory/{{ letsencrypt_account_hash }}/regr.json"

@@ -50,7 +50,7 @@
file:
owner: root
group: wheel
mode: 655
mode: "655"
path: "/tmp/letsencrypt-auto"
state: directory

@@ -16,7 +16,7 @@
copy:
owner: mailman
group: mailman
mode: 740
mode: "740"
src: postfix-to-mailman.py
dest: /usr/local/mailman/postfix-to-mailman.py

@@ -99,7 +99,7 @@
file:
path: /usr/local/mailman/archives/private
state: directory
mode: 02770
mode: "2770"

- name: generate mailman list password
shell: "openssl rand -base64 33 | tr -d '='"
@@ -12,7 +12,7 @@
state: directory
owner: postfix
group: wheel
mode: 755
mode: "755"

- name: Copy opendkim.conf
become: yes
@@ -27,7 +27,7 @@
dest: /usr/local/etc/opendkim.keytable
owner: root
group: wheel
mode: 644
mode: "644"

- name: Install opendkim.signingtable
become: yes
@@ -36,7 +36,7 @@
dest: /usr/local/etc/opendkim.signingtable
owner: root
group: wheel
mode: 644
mode: "644"

- name: Create opendkim key directory
become: yes
@@ -45,14 +45,14 @@
state: directory
owner: postfix
group: postfix
mode: 500
mode: "500"

- name: Create opendkim keys
become: yes
copy:
owner: postfix
group: postfix
mode: 600
mode: "600"
content: "{{ item.value }}"
dest: "/usr/local/etc/opendkim/{{ item.key }}-default.private"
with_dict: "{{ dkimkeys }}"
@@ -22,7 +22,7 @@
copy:
owner: root
group: wheel
mode: 644
mode: "644"
src: FreeBSD.conf
dest: /usr/local/etc/pkg/repos/FreeBSD.conf

@@ -37,7 +37,7 @@
copy:
owner: root
group: wheel
mode: 600
mode: "600"
src: poudriere.tyknet.dk.cert
dest: /usr/local/etc/ssl/certs/poudriere.cert

Oops, something went wrong.

0 comments on commit 7cf0d2f

Please sign in to comment.