Compare commits
18 Commits
4e19976cf4
...
3a1990fe9a
Author | SHA1 | Date | |
---|---|---|---|
3a1990fe9a | |||
6f1af3aef9 | |||
194bcbdb7b | |||
856dcf98c7 | |||
8b65e8cf70 | |||
806bb84fa8 | |||
c5dbaf38e1 | |||
cf30fbe2e6 | |||
36ca2d681a | |||
f7b222e499 | |||
8112fd3866 | |||
2be2790e52 | |||
959846ae46 | |||
ed5010fe9a | |||
0626b20e85 | |||
156a3b5c01 | |||
f12da6547d | |||
57c5e8051c |
@ -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
|
||||
|
@ -27,11 +27,6 @@
|
||||
- pkgs
|
||||
- packages
|
||||
|
||||
#- include: audio.yml
|
||||
# tags:
|
||||
# - base
|
||||
# - audio
|
||||
|
||||
- include: system.yml
|
||||
tags:
|
||||
- base
|
||||
|
@ -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 }}'
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
dependencies:
|
||||
- { role: base }
|
||||
- { role: client }
|
||||
- { role: docenti }
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user