Compare commits
11 Commits
3a1990fe9a
...
4e19976cf4
Author | SHA1 | Date | |
---|---|---|---|
4e19976cf4 | |||
cc729cb0a6 | |||
1130b8159c | |||
f90fc64c26 | |||
05576d6e46 | |||
e79f212ba3 | |||
5b88422724 | |||
091857b965 | |||
67f5908e13 | |||
6c0c326b95 | |||
a71c0d198e |
@ -7,7 +7,6 @@ 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,6 +27,11 @@
|
|||||||
- pkgs
|
- pkgs
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
#- include: audio.yml
|
||||||
|
# tags:
|
||||||
|
# - base
|
||||||
|
# - audio
|
||||||
|
|
||||||
- include: system.yml
|
- include: system.yml
|
||||||
tags:
|
tags:
|
||||||
- base
|
- base
|
||||||
|
@ -1,18 +1,6 @@
|
|||||||
---
|
---
|
||||||
# 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,12 +19,6 @@
|
|||||||
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,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
# 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
|
||||||
@ -34,19 +29,3 @@
|
|||||||
- 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,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: base }
|
|
||||||
- { role: client }
|
- { role: client }
|
||||||
- { role: docenti }
|
- { role: docenti }
|
||||||
|
@ -30,15 +30,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: Removing old (and not-working) approach
|
- name: Adding pulseaudio fixing script at reboot.
|
||||||
file:
|
lineinfile:
|
||||||
path: /etc/cron.d/pulseaudio-perms
|
line: '@reboot root curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | bash >/dev/null 2>&1'
|
||||||
state: absent
|
dest: /etc/cron.d/pulseaudio-perms
|
||||||
|
create: yes
|
||||||
- name: Get the new script
|
state: present
|
||||||
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,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
|
- name: Checking for upgrade-notification configuration
|
||||||
shell: >
|
stat:
|
||||||
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
|
path: /usr/share/upstart/sessions/update-notifier-release.conf
|
||||||
|
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,4 +45,6 @@ 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