whitespaces
This commit is contained in:
parent
7cc1777cf5
commit
bd8644ae60
|
@ -18,25 +18,25 @@
|
||||||
|
|
||||||
- name: "Unix account for '{{ user.name }}' is present (with uid '{{ user.uid }}')"
|
- name: "Unix account for '{{ user.name }}' is present (with uid '{{ user.uid }}')"
|
||||||
user:
|
user:
|
||||||
state: present
|
state: present
|
||||||
uid: '{{ user.uid }}'
|
uid: '{{ user.uid }}'
|
||||||
name: '{{ user.name }}'
|
name: '{{ user.name }}'
|
||||||
comment: '{{ user.fullname }}'
|
comment: '{{ user.fullname }}'
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: '{{ user.password_hash }}'
|
password: '{{ user.password_hash }}'
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
when:
|
when:
|
||||||
- loginisbusy.rc != 0
|
- loginisbusy.rc != 0
|
||||||
- uidisbusy.rc != 0
|
- uidisbusy.rc != 0
|
||||||
|
|
||||||
- name: "Unix account for '{{ user.name }}' is present (with random uid)"
|
- name: "Unix account for '{{ user.name }}' is present (with random uid)"
|
||||||
user:
|
user:
|
||||||
state: present
|
state: present
|
||||||
name: '{{ user.name }}'
|
name: '{{ user.name }}'
|
||||||
comment: '{{ user.fullname }}'
|
comment: '{{ user.fullname }}'
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: '{{ user.password_hash }}'
|
password: '{{ user.password_hash }}'
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
when:
|
when:
|
||||||
- loginisbusy.rc != 0
|
- loginisbusy.rc != 0
|
||||||
- uidisbusy.rc == 0
|
- uidisbusy.rc == 0
|
||||||
|
@ -118,9 +118,9 @@
|
||||||
|
|
||||||
- name: "Home directory for '{{ user.name }}' is not accessible by group and other users"
|
- name: "Home directory for '{{ user.name }}' is not accessible by group and other users"
|
||||||
file:
|
file:
|
||||||
name: '/home/{{ user.name }}'
|
name: '/home/{{ user.name }}'
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
# Evomaintenance
|
# Evomaintenance
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
tags:
|
tags:
|
||||||
- evomaintenance
|
- evomaintenance
|
||||||
|
|
||||||
- name: Force restart minifirewall
|
- name: Force restart minifirewall
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify: restart minifirewall
|
notify: restart minifirewall
|
||||||
when: minifirewall_restart_force
|
when: minifirewall_restart_force
|
||||||
tags:
|
tags:
|
||||||
- evomaintenance
|
- evomaintenance
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
- include: tail.yml
|
- include: tail.yml
|
||||||
when: minifirewall_tail_included
|
when: minifirewall_tail_included
|
||||||
|
|
||||||
- name: Force restart minifirewall
|
- name: Force restart minifirewall
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify: restart minifirewall
|
notify: restart minifirewall
|
||||||
when: minifirewall_restart_force
|
when: minifirewall_restart_force
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
- name: Add GPG key for PGDG repository
|
- name: Add GPG key for PGDG repository
|
||||||
apt_key:
|
apt_key:
|
||||||
#url: http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc
|
#url: http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc
|
||||||
data: "{{ lookup('file', 'ACCC4CF8.asc') }}"
|
data: "{{ lookup('file', 'ACCC4CF8.asc') }}"
|
||||||
|
|
||||||
- name: Add APT preference file
|
- name: Add APT preference file
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: Create group instance
|
- name: Create group instance
|
||||||
group:
|
group:
|
||||||
name: "{{ tomcat_instance_name }}"
|
name: "{{ tomcat_instance_name }}"
|
||||||
gid: "{{ tomcat_instance_port }}"
|
gid: "{{ tomcat_instance_port }}"
|
||||||
|
|
||||||
- name: Create user instance
|
- name: Create user instance
|
||||||
user:
|
user:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: reload unbound
|
- name: reload unbound
|
||||||
service:
|
service:
|
||||||
name: unbound
|
name: unbound
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
|
@ -6,24 +6,24 @@
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
vtype: "{{ item.type }}"
|
vtype: "{{ item.type }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { key: 'roundcube/database-type', type: 'select', value: 'sqlite3' }
|
- { key: 'roundcube/database-type', type: 'select', value: 'sqlite3' }
|
||||||
- { key: 'roundcube/db/basepath', type: 'string', value: '/var/lib/roundcube/' }
|
- { key: 'roundcube/db/basepath', type: 'string', value: '/var/lib/roundcube/' }
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: install Roundcube
|
- name: install Roundcube
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- imapproxy
|
- imapproxy
|
||||||
- roundcube
|
- roundcube
|
||||||
- roundcube-sqlite3
|
- roundcube-sqlite3
|
||||||
- roundcube-plugins
|
- roundcube-plugins
|
||||||
- php-net-sieve
|
- php-net-sieve
|
||||||
- php-zip
|
- php-zip
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: configure imapproxy imap host
|
- name: configure imapproxy imap host
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
line: "server_hostname {{ roundcube_imap_host }}"
|
line: "server_hostname {{ roundcube_imap_host }}"
|
||||||
notify: restart imapproxy
|
notify: restart imapproxy
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: configure imapproxy imap port
|
- name: configure imapproxy imap port
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
line: "server_port {{ roundcube_imap_port }}"
|
line: "server_port {{ roundcube_imap_port }}"
|
||||||
notify: reload imapproxy
|
notify: reload imapproxy
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: enable and start imapproxy
|
- name: enable and start imapproxy
|
||||||
service:
|
service:
|
||||||
|
@ -49,24 +49,24 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: True
|
enabled: True
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: configure roundcube imap host
|
- name: configure roundcube imap host
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/roundcube/config.inc.php
|
dest: /etc/roundcube/config.inc.php
|
||||||
regexp: "\\$config\\['default_host'\\]"
|
regexp: "\\$config\\['default_host'\\]"
|
||||||
line: "$config['default_host'] = array('127.0.0.1');"
|
line: "$config['default_host'] = array('127.0.0.1');"
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: configure roudcube imap port
|
- name: configure roudcube imap port
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/roundcube/config.inc.php
|
dest: /etc/roundcube/config.inc.php
|
||||||
regexp: "\\$config\\['default_port'\\]"
|
regexp: "\\$config\\['default_port'\\]"
|
||||||
insertafter: "\\$config\\['default_host'\\]"
|
insertafter: "\\$config\\['default_host'\\]"
|
||||||
line: "$config['default_port'] = 1143;"
|
line: "$config['default_port'] = 1143;"
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: configure managesieve plugin
|
- name: configure managesieve plugin
|
||||||
copy:
|
copy:
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
remote_src: True
|
remote_src: True
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: enable default plugins
|
- name: enable default plugins
|
||||||
replace:
|
replace:
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
regexp: "^\\$config\\['plugins'\\] = array\\($"
|
regexp: "^\\$config\\['plugins'\\] = array\\($"
|
||||||
replace: "$config['plugins'] = array('zipdownload','managesieve'"
|
replace: "$config['plugins'] = array('zipdownload','managesieve'"
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: deploy apache roundcube vhost
|
- name: deploy apache roundcube vhost
|
||||||
template:
|
template:
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
when: roundcube_webserver == "apache"
|
when: roundcube_webserver == "apache"
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: enable apache roundcube vhost
|
- name: enable apache roundcube vhost
|
||||||
file:
|
file:
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
when: roundcube_webserver == "apache"
|
when: roundcube_webserver == "apache"
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
||||||
- name: deploy Nginx roundcube vhost
|
- name: deploy Nginx roundcube vhost
|
||||||
template:
|
template:
|
||||||
|
@ -128,4 +128,4 @@
|
||||||
line: ' <li><a href="https://{{ roundcube_host }}">Webmail</a></li>'
|
line: ' <li><a href="https://{{ roundcube_host }}">Webmail</a></li>'
|
||||||
insertbefore: "</ul>"
|
insertbefore: "</ul>"
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- roundcube
|
||||||
|
|
Loading…
Reference in New Issue