client-pull-installation/roles/docenti/tasks/epoptes.yml

28 lines
588 B
YAML

---
# Managing Epoptes installation on 'docenti' role.
- name: Configuring the Epoptes server
lineinfile:
dest: /etc/default/epoptes
line: 'SOCKET_GROUP="{{ ansible_local.domain.domainshort }}\docenti"'
state: present
- name: Disabling sysv start
shell: /usr/sbin/update-rc.d -f epoptes remove
become: yes
- name: Installing upstart service
copy:
src: epoptes.conf
dest: /etc/init/epoptes.conf
owner: root
group: root
mode: 0644
- name: Ensure to start the service
service:
name: epoptes
state: started
enabled: yes
become: yes