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
|
- firefox-locale-it
|
||||||
- libreoffice-l10n-it
|
- libreoffice-l10n-it
|
||||||
- libnss-myhostname
|
- libnss-myhostname
|
||||||
|
- ubuntu-restricted-extras
|
||||||
base_common_delpkg:
|
base_common_delpkg:
|
||||||
- libnss-mdns
|
- libnss-mdns
|
||||||
- unity-webapps-common
|
- unity-webapps-common
|
||||||
|
@ -27,11 +27,6 @@
|
|||||||
- pkgs
|
- pkgs
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
#- include: audio.yml
|
|
||||||
# tags:
|
|
||||||
# - base
|
|
||||||
# - audio
|
|
||||||
|
|
||||||
- include: system.yml
|
- include: system.yml
|
||||||
tags:
|
tags:
|
||||||
- base
|
- base
|
||||||
|
@ -1,6 +1,18 @@
|
|||||||
---
|
---
|
||||||
# Management of packages
|
# 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
|
- name: Removing packages commonly not required
|
||||||
apt:
|
apt:
|
||||||
pkg: '{{ item }}'
|
pkg: '{{ item }}'
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
|
- { role: base }
|
||||||
- { role: client }
|
- { role: client }
|
||||||
- { role: docenti }
|
- { role: docenti }
|
||||||
|
@ -30,9 +30,15 @@
|
|||||||
- 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: Removing old (and not-working) approach
|
||||||
lineinfile:
|
file:
|
||||||
line: '@reboot root curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | bash >/dev/null 2>&1'
|
path: /etc/cron.d/pulseaudio-perms
|
||||||
dest: /etc/cron.d/pulseaudio-perms
|
state: absent
|
||||||
create: yes
|
|
||||||
state: present
|
- 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
|
- name: Removing notifications for system upgrade
|
||||||
stat:
|
shell: >
|
||||||
path: /usr/share/upstart/sessions/update-notifier-release.conf
|
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
|
||||||
register: update_notifier_release_stat
|
|
||||||
ignore_errors: yes
|
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
|
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
|
||||||
chmod 640 /var/run/pulse/.pulse-cookie
|
chmod 640 /var/run/pulse/.pulse-cookie
|
||||||
fi
|
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
|
end script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user