Compare commits

...

3 Commits

3 changed files with 33 additions and 6 deletions

View File

@ -19,6 +19,12 @@
state: absent state: absent
when: get_epo_srv_name|changed when: get_epo_srv_name|changed
- name: Ensuring epoptes-client is installed
apt:
name: epoptes-client
state: present
when: get_epo_srv_name|changed
- name: Configuring the client - name: Configuring the client
replace: replace:
dest: /etc/default/epoptes-client dest: /etc/default/epoptes-client

View File

@ -1,6 +1,11 @@
--- ---
# Managing Epoptes installation on 'docenti' role. # Managing Epoptes installation on 'docenti' role.
- name: Ensuring epoptes package has been installed
apt:
name: epoptes
state: present
- name: Configuring the Epoptes server - name: Configuring the Epoptes server
lineinfile: lineinfile:
dest: /etc/default/epoptes dest: /etc/default/epoptes
@ -29,3 +34,19 @@
- name: Starting epoptes from upstart - name: Starting epoptes from upstart
shell: /sbin/start epoptes shell: /sbin/start epoptes
when: epoptes_status.stdout.find("start/running") == -1 when: epoptes_status.stdout.find("start/running") == -1
# Disabling ufw as per issue #12
- name: Disabling ufw by override
lineinfile:
path: /etc/init/ufw.override
line: "manual"
state: present
create: yes
owner: root
group: root
mode: 0644
- name: Stopping ufw
service:
name: ufw
state: stopped

View File

@ -29,9 +29,9 @@
- name: Disabling pulseaudio startup on lightdm - name: Disabling pulseaudio startup on lightdm
shell: chmod -x /usr/bin/start-pulseaudio-x11 shell: chmod -x /usr/bin/start-pulseaudio-x11
#- name: Adding pulseaudio fixing script at reboot. - name: Adding pulseaudio fixing script at reboot.
# lineinfile: lineinfile:
# line: '@reboot root curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | bash >/dev/null 2>&1' line: '@reboot root curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | bash >/dev/null 2>&1'
# dest: /etc/cron.d/pulseaudio-perms dest: /etc/cron.d/pulseaudio-perms
# create: yes create: yes
# state: present state: present