Browse Source

fix vars

services
Andrea Cimbalo 8 years ago
parent
commit
92d28b6297
10 changed files with 27 additions and 16 deletions
  1. +2
    -0
      roles/apache/defaults/main.yml
  2. +16
    -0
      roles/apache/tasks/main.yaml
  3. +0
    -1
      roles/dokuwiki/meta/main.yaml
  4. +1
    -0
      roles/dokuwiki/vars/main.yml
  5. +0
    -1
      roles/roundcube/meta/main.yaml
  6. +2
    -6
      roles/roundcube/tasks/main.yaml
  7. +1
    -0
      roles/roundcube/vars/main.yml
  8. +0
    -1
      roles/sympa/meta/main.yaml
  9. +4
    -7
      roles/sympa/tasks/main.yaml
  10. +1
    -0
      roles/sympa/vars/main.yml

+ 2
- 0
roles/apache/defaults/main.yml View File

@ -0,0 +1,2 @@
---
php: false

+ 16
- 0
roles/apache/tasks/main.yaml View File

@ -0,0 +1,16 @@
---
- include: service.yaml
vars:
service_name: apache2
service_packages:
- apache2
- name: validate apache2 configuration
command: nginx -t -c /etc/nginx/nginx.conf
changed_when: False
- name: enable apache configuration
file:
src: "/etc/apache2/sites-available/{{ config_name }}"
dest: "/etc/apache2/sites-enabled/{{ config_name }}"
state: link
notify: restart apache2

+ 0
- 1
roles/dokuwiki/meta/main.yaml View File

@ -1,4 +1,3 @@
---
dependencies:
- role: nginx
config_name: docuwiki.conf

+ 1
- 0
roles/dokuwiki/vars/main.yml View File

@ -0,0 +1 @@
config_name: docuwiki.conf

+ 0
- 1
roles/roundcube/meta/main.yaml View File

@ -1,4 +1,3 @@
---
dependencies:
- role: nginx
config_name: roundcube.conf

+ 2
- 6
roles/roundcube/tasks/main.yaml View File

@ -10,14 +10,10 @@
- roundcube-sqlite3
- roundcube
- roundcube-plugins
- name: add nginx config for roundcube
template:
dest=/etc/nginx/sites-available/roundcube.conf
src=roundcube_config.j2
owner=root
group=root
mode=0700
src: roundcube_nginx.j2
dest: "/etc/nginx/sites-available/{{ config_name }}"
notify:
- enable nginx configuration
- restart nginx

+ 1
- 0
roles/roundcube/vars/main.yml View File

@ -0,0 +1 @@
config_name: roundcube.conf

+ 0
- 1
roles/sympa/meta/main.yaml View File

@ -1,4 +1,3 @@
---
dependencies:
- role: nginx
config_name: sympa.conf

+ 4
- 7
roles/sympa/tasks/main.yaml View File

@ -3,13 +3,13 @@
vars:
service_name: nginx
service_packages:
- nginx
- nginx
- name: install sympa and associated packages
apt: name={{ item }} state=latest
with_items:
- sympa
- wwsympa
- fcgiwrap
- sympa
- wwsympa
- fcgiwrap
- name: add nginx config for sympa
template:
src: sympa_nginx.j2
@ -17,6 +17,3 @@
notify:
- enable nginx configuration
- restart nginx
notify:
- enable nginx configuration
- restart nginx

+ 1
- 0
roles/sympa/vars/main.yml View File

@ -0,0 +1 @@
config_name: sympa.conf

Loading…
Cancel
Save