Compare commits

..

18 Commits

Author SHA1 Message Date
3a1990fe9a Reverting blocking error on disable-upgrade and disabilitation of eth0 interface. 2018-11-11 20:48:00 +01:00
6f1af3aef9 Removed ssl certificate requirements. 2018-11-11 20:47:18 +01:00
194bcbdb7b Fixing audio not starting. 2018-11-11 20:47:09 +01:00
856dcf98c7 Aggiunta cartella di produzione per Liceo del Seminario Vescovile di Bergamo. 2018-11-11 20:38:40 +01:00
8b65e8cf70 Removed ssl certificate requirements. 2018-11-11 20:38:32 +01:00
806bb84fa8 Correcting domainpwd.vault. 2018-11-11 20:38:32 +01:00
c5dbaf38e1 Fixing the client side as per paperms-fix server-config branch. 2018-11-11 14:09:37 +01:00
cf30fbe2e6 Should fix issue #1. 2018-11-11 14:09:02 +01:00
36ca2d681a Should fix issue #2. 2018-11-11 14:08:57 +01:00
f7b222e499 Removing old unused stuff. 2018-11-11 14:08:43 +01:00
8112fd3866 Adding base role to domain. 2018-11-11 13:06:14 +00:00
2be2790e52 Should fix issue #1. 2018-11-11 13:06:14 +00:00
959846ae46 Should fix issue #2. 2018-11-11 13:06:14 +00:00
ed5010fe9a Removing old unused stuff. 2018-11-11 13:06:14 +00:00
0626b20e85 Adding local signed fixes. 2018-11-08 22:55:41 +01:00
156a3b5c01
Preventing breakage for epoptes package missing. Disabling ufw on docente as per issue #12. (#16) 2017-12-13 00:17:21 +01:00
f12da6547d
Ensuring epoptes-client is installed before modifying its files. (#15)
* Ensuring epoptes-client is installed before touching its files.
2017-12-12 23:51:25 +01:00
57c5e8051c Re-enabling audio fix. (#13) 2017-10-06 02:48:38 +02:00
9 changed files with 62 additions and 21 deletions

View File

@ -7,6 +7,7 @@ base_common_addpkg:
- firefox-locale-it
- libreoffice-l10n-it
- libnss-myhostname
- ubuntu-restricted-extras
base_common_delpkg:
- libnss-mdns
- unity-webapps-common

View File

@ -27,11 +27,6 @@
- pkgs
- packages
#- include: audio.yml
# tags:
# - base
# - audio
- include: system.yml
tags:
- base

View File

@ -1,6 +1,18 @@
---
# Management of packages
- name: Activate LTS support by the means of HWE stack
apt:
name:
- linux-generic-lts-xenial
- xserver-xorg-core-lts-xenial
- xserver-xorg-lts-xenial
- xserver-xorg-video-all-lts-xenial
- xserver-xorg-input-all-lts-xenial
- libwayland-egl1-mesa-lts-xenial
state: present
install_recommends: yes
- name: Removing packages commonly not required
apt:
pkg: '{{ item }}'

View File

@ -19,6 +19,12 @@
state: absent
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
replace:
dest: /etc/default/epoptes-client

View File

@ -1,6 +1,11 @@
---
# Managing Epoptes installation on 'docenti' role.
- name: Ensuring epoptes package has been installed
apt:
name: epoptes
state: present
- name: Configuring the Epoptes server
lineinfile:
dest: /etc/default/epoptes
@ -29,3 +34,19 @@
- name: Starting epoptes from upstart
shell: /sbin/start epoptes
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

@ -1,4 +1,5 @@
---
dependencies:
- { role: base }
- { role: client }
- { role: docenti }

View File

@ -30,9 +30,15 @@
- name: Disabling pulseaudio startup on lightdm
shell: chmod -x /usr/bin/start-pulseaudio-x11
- name: Adding pulseaudio fixing script at reboot.
lineinfile:
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
create: yes
state: present
- name: Removing old (and not-working) approach
file:
path: /etc/cron.d/pulseaudio-perms
state: absent
- name: Get the new script
get_url:
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/paperms/paperms.sh"
dest: /tmp/paperms.sh
- name: Run the script (install other support files and fixes the permissions)
shell: bash /tmp/paperms.sh

View File

@ -1,11 +1,12 @@
---
- name: Removing upgrade-notification from /etc
lineinfile:
dest: /etc/update-manager/release-upgrades
line: "Prompt=never"
regexp: '^Prompt='
state: present
- name: Checking for upgrade-notification configuration
stat:
path: /usr/share/upstart/sessions/update-notifier-release.conf
register: update_notifier_release_stat
- name: Removing notifications for system upgrade
shell: >
test -f /usr/share/upstart/sessions/update-notifier-release.conf && mv /usr/share/upstart/sessions/update-notifier-release.conf /usr/share/upstart/sessions/update-notifier-release.conf.disabled
ignore_errors: yes
#
#- name: Removing notifications for system upgrade
# shell: mv /usr/share/upstart/sessions/update-notifier-release.conf /usr/share/upstart/sessions/update-notifier-release.conf.disabled
# when: update_notifier_release_stat|success

View File

@ -45,6 +45,4 @@ post-start script
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
chmod 640 /var/run/pulse/.pulse-cookie
fi
# Run script to fix permissions on the pulseaudio stack
/usr/bin/curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | /bin/bash >/dev/null 2>&1 &
end script