main.yml 1.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- include_tasks: enable_service.yml service=kiwix-server

- include_tasks: enable_service.yml service=edupi
  when: ansible_local.config.edupi|bool

- include_tasks: enable_vhost.yml name=edupi
  when: ansible_local.config.edupi|bool

- include_tasks: enable_service.yml service=kalite
  when: ansible_local.config.kalite_languages | length

- include_tasks: enable_vhost.yml name=kalite
  when: ansible_local.config.kalite_languages | length

- include_tasks: enable_service.yml service=aflatoun
  when: ansible_local.config.aflatoun_languages | length

- include_tasks: enable_vhost.yml name=aflatoun
  when: ansible_local.config.aflatoun_languages | length

- include_tasks: enable_service.yml service=parsoid
  when: ansible_local.config.wikifundi_languages | length

rgaudin's avatar
rgaudin committed
25
26
- include_tasks: enable_service.yml service=memcached
  when: ansible_local.config.wikifundi_languages | length
27

rgaudin's avatar
rgaudin committed
28
- include_tasks: enable_service.yml service=php{{ php_version }}-fpm
rgaudin's avatar
rgaudin committed
29
  when: ansible_local.config.wikifundi_languages | length
30
31
32
33
34
35
36

- include_tasks: enable_vhost.yml name={{ item }}.wikifundi
  with_items: "{{ ansible_local.config.wikifundi_languages | default(omit) }}"
  when: ansible_local.config.wikifundi_languages | length

- include_tasks: enable_service.yml service=dnsmasq

37
38
- include_tasks: disable_service.yml service=rsyslog

39
40
41
- name: Disable SSH
  systemd:
    name: ssh
42
    enabled: no