Compare commits

..

11 Commits

9 changed files with 21 additions and 62 deletions

View File

@ -7,7 +7,6 @@ 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,6 +27,11 @@
- pkgs
- packages
#- include: audio.yml
# tags:
# - base
# - audio
- include: system.yml
tags:
- base

View File

@ -1,18 +1,6 @@
---
# 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,12 +19,6 @@
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,11 +1,6 @@
---
# 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
@ -34,19 +29,3 @@
- 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,5 +1,4 @@
---
dependencies:
- { role: base }
- { role: client }
- { role: docenti }

View File

@ -30,15 +30,9 @@
- name: Disabling pulseaudio startup on lightdm
shell: chmod -x /usr/bin/start-pulseaudio-x11
- 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
- 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

View File

@ -1,12 +1,11 @@
---
- name: Removing upgrade-notification from /etc
lineinfile:
dest: /etc/update-manager/release-upgrades
line: "Prompt=never"
regexp: '^Prompt='
state: present
- 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
- name: Checking for upgrade-notification configuration
stat:
path: /usr/share/upstart/sessions/update-notifier-release.conf
register: update_notifier_release_stat
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,4 +45,6 @@ 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