1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/4-server-options/tasks/main.yml

93 lines
1.9 KiB
YAML
Raw Normal View History

2017-10-27 02:01:02 +00:00
# Server Options
- name: ...IS BEGINNING ============================================]
command: echo
- name: HOMEPAGE
include_role:
name: homepage
2017-10-27 02:29:54 +00:00
tags: base, homepage
2017-10-27 02:01:02 +00:00
- name: SSHD
include_role:
name: sshd
tags: base, sshd
- name: NETWORK
include_role:
name: network
tags: base, network
2017-10-27 02:33:15 +00:00
# the above 3 have no "when: XXXXX_install" flag -- whereas the 5 below do
2017-10-27 02:28:18 +00:00
2017-10-27 02:01:02 +00:00
- name: AUTHSERVER
include_role:
name: authserver
when: authserver_install
2017-10-27 02:29:16 +00:00
tags: authserver
2017-10-27 02:01:02 +00:00
- name: OPENVPN
include_role:
name: openvpn
when: openvpn_install
tags: openvpn
- name: SAMBA
include_role:
name: samba
when: samba_install
tags: samba
- name: USB-LIB
include_role:
name: usb-lib
when: usb_lib_install
tags: usb-lib
- name: CUPS
include_role:
name: cups
when: cups_install
tags: cups
2017-05-27 18:09:50 +00:00
# this script can be sourced to get iiab location
- name: Create iiab.env file
template: src=roles/1-prep/templates/iiab.env.j2
dest=/etc/iiab/iiab.env
owner=root
group=root
mode=0644
- name: put a python interface to iiab.env
template: src=roles/1-prep/templates/iiab_env.py.j2
dest=/etc/iiab/iiab_env.py
- name: generate the offline documents
command: /usr/bin/iiab-refresh-wiki-docs
when: not nodocs
2017-05-27 18:09:50 +00:00
- name: Stop postgresql service
command: "/etc/init.d/postgresql stop"
ignore_errors: True
2017-05-27 23:10:45 +00:00
when: postgresql_install and is_debuntu
2017-05-27 18:09:50 +00:00
- name: Start postgresql service
service: name=postgresql-iiab
2017-05-27 18:09:50 +00:00
state=restarted
enabled=yes
when: postgresql_enabled
- name: Stop authserver service
service: name=xs-authserver
state=stopped
enabled=no
when: not authserver_enabled and authserver_install
- name: Start xs-authserver service
service: name=xs-authserver
state=restarted
when: authserver_enabled
2017-10-27 02:01:02 +00:00
- name: ...WAS COMPLETED ===========================================]
command: echo