2015-09-14 01:08:32 +02:00
|
|
|
---
|
|
|
|
# Managing Epoptes installation on 'docenti' role.
|
|
|
|
|
|
|
|
- name: Configuring the Epoptes server
|
|
|
|
lineinfile:
|
|
|
|
dest: /etc/default/epoptes
|
2015-09-21 01:29:34 +02:00
|
|
|
line: 'SOCKET_GROUP="{{ ansible_local.domain.domainshort }}\docenti"'
|
2015-09-14 01:08:32 +02:00
|
|
|
state: present
|
2015-10-02 21:47:02 +02:00
|
|
|
|
2016-02-19 01:04:11 +01:00
|
|
|
- name: Stopping epoptes SysV daemon
|
|
|
|
shell: /etc/init.d/epoptes stop
|
|
|
|
|
2015-10-02 21:47:02 +02:00
|
|
|
- name: Disabling sysv start
|
2016-02-19 00:20:51 +01:00
|
|
|
shell: /usr/sbin/update-rc.d -f epoptes remove
|
2015-10-02 21:47:02 +02:00
|
|
|
|
|
|
|
- name: Installing upstart service
|
|
|
|
copy:
|
|
|
|
src: epoptes.conf
|
|
|
|
dest: /etc/init/epoptes.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
2016-02-20 15:53:22 +01:00
|
|
|
- name: Verify epoptes status
|
|
|
|
shell: /sbin/status epoptes
|
|
|
|
register: epoptes_status
|
|
|
|
|
2016-02-19 01:04:11 +01:00
|
|
|
- name: Starting epoptes from upstart
|
|
|
|
shell: /sbin/start epoptes
|
2016-02-20 15:53:22 +01:00
|
|
|
when: epoptes_status.stdout.find("start/running") == -1
|