Compare commits
1 Commits
master
...
signed-fix
Author | SHA1 | Date | |
---|---|---|---|
2e594dcf5d |
@ -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
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
- name: Installation of the desktop environment
|
- name: Installation of the desktop environment
|
||||||
shell: "DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get -y install edubuntu-desktop-gnome^"
|
shell: "DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get -y install edubuntu-desktop-gnome^"
|
||||||
when: check_edubuntu_pkg is changed
|
when: check_edubuntu_pkg|changed
|
||||||
tags: edu-install
|
tags: edu-install
|
||||||
|
|
||||||
- name: Change default desktop environment
|
- name: Change default desktop environment
|
||||||
|
@ -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,59 +1,61 @@
|
|||||||
---
|
---
|
||||||
# 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: "{{ base_common_delpkg }}"
|
pkg: '{{ item }}'
|
||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
|
with_items: "{{ base_common_delpkg }}"
|
||||||
|
|
||||||
- name: Removing packages from client machines
|
- name: Removing packages from client machines
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ base_client_delpkg }}"
|
pkg: '{{ item }}'
|
||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
|
with_items: "{{ base_client_delpkg }}"
|
||||||
when: ansible_local.noderole.role == 'client' and base_client_delpkg|length > 0
|
when: ansible_local.noderole.role == 'client' and base_client_delpkg|length > 0
|
||||||
|
|
||||||
- name: Removing packages from docenti machines
|
- name: Removing packages from docenti machines
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ base_docenti_delpkg }}"
|
pkg: '{{ item }}'
|
||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
|
with_items: "{{ base_docenti_delpkg }}"
|
||||||
when: ansible_local.noderole.role == 'docenti' and base_docenti_delpkg|length > 0
|
when: ansible_local.noderole.role == 'docenti' and base_docenti_delpkg|length > 0
|
||||||
|
|
||||||
- name: Cleanup of unneeded packages
|
- name: Cleanup of unneeded packages
|
||||||
shell: apt-get -y autoremove
|
shell: apt-get -y autoremove
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
register: autoremove
|
register: autoremove
|
||||||
changed_when: "'Rimozione' in autoremove.stdout"
|
changed_when: "'Rimozione' in autoremove.stdout"
|
||||||
|
|
||||||
- name: Installing additional common packages
|
- name: Installing additional common packages
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ base_common_addpkg }}"
|
pkg: '{{ item }}'
|
||||||
state: present
|
state: installed
|
||||||
|
with_items: "{{ base_common_addpkg }}"
|
||||||
tags: edu-install
|
tags: edu-install
|
||||||
|
|
||||||
- name: Installing additional packages for client role
|
- name: Installing additional packages for client role
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ base_client_addpkg }}"
|
pkg: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
|
with_items: "{{ base_client_addpkg }}"
|
||||||
when: ansible_local.noderole.role == 'client' and base_client_addpkg|length > 0
|
when: ansible_local.noderole.role == 'client' and base_client_addpkg|length > 0
|
||||||
|
|
||||||
- name: Installing additional packages for docenti role
|
- name: Installing additional packages for docenti role
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ base_docenti_addpkg }}"
|
pkg: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
|
with_items: "{{ base_docenti_addpkg }}"
|
||||||
when: ansible_local.noderole.role == 'docenti' and base_docenti_addpkg|length > 0
|
when: ansible_local.noderole.role == 'docenti' and base_docenti_addpkg|length > 0
|
||||||
|
|
||||||
|
- name: Correggo NetworkManager per gestire la rete
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/network/interfaces
|
||||||
|
regexp: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
when: ansible_product_name != "VirtualBox"
|
||||||
|
with_items:
|
||||||
|
- ^auto eth0
|
||||||
|
- ^iface eth0
|
||||||
|
@ -8,5 +8,5 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: ansible_product_name != "VirtualBox"
|
when: ansible_product_name != "VirtualBox"
|
||||||
with_items:
|
with_items:
|
||||||
- '^auto {{ ansible_default_ipv4.interface }}'
|
- '^auto eth0'
|
||||||
- '^iface {{ ansible_default_ipv4.interface }}'
|
- '^iface eth0'
|
||||||
|
@ -10,27 +10,21 @@
|
|||||||
- name: Checking for a correct name
|
- name: Checking for a correct name
|
||||||
shell: cat /tmp/epoptes-srv
|
shell: cat /tmp/epoptes-srv
|
||||||
register: epo_srv_name
|
register: epo_srv_name
|
||||||
when: get_epo_srv_name is changed
|
when: get_epo_srv_name|changed
|
||||||
changed_when: "'none' not in epo_srv_name.stdout"
|
changed_when: "'none' not in epo_srv_name.stdout"
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
file:
|
file:
|
||||||
path: /tmp/epoptes-srv
|
path: /tmp/epoptes-srv
|
||||||
state: absent
|
state: absent
|
||||||
when: get_epo_srv_name is changed
|
when: get_epo_srv_name|changed
|
||||||
|
|
||||||
- name: Ensuring epoptes-client is installed
|
|
||||||
apt:
|
|
||||||
name: epoptes-client
|
|
||||||
state: present
|
|
||||||
when: get_epo_srv_name is changed
|
|
||||||
|
|
||||||
- name: Configuring the client
|
- name: Configuring the client
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/default/epoptes-client
|
dest: /etc/default/epoptes-client
|
||||||
regexp: "^#SERVER=server"
|
regexp: "^#SERVER=server"
|
||||||
replace: "SERVER={{ epo_srv_name.stdout }}"
|
replace: "SERVER={{ epo_srv_name.stdout }}"
|
||||||
when: epo_srv_name is changed
|
when: epo_srv_name|changed
|
||||||
|
|
||||||
- name: Checking for an already existent certificate
|
- name: Checking for an already existent certificate
|
||||||
file:
|
file:
|
||||||
@ -41,7 +35,7 @@
|
|||||||
|
|
||||||
- name: Getting the epoptes server certificate
|
- name: Getting the epoptes server certificate
|
||||||
shell: /usr/sbin/epoptes-client -c
|
shell: /usr/sbin/epoptes-client -c
|
||||||
when: crt_epo_exists is failed
|
when: crt_epo_exists|failed
|
||||||
# I don't notify anymore, hoping that this would be done on first run after
|
# I don't notify anymore, hoping that this would be done on first run after
|
||||||
# preseed and it should restart because of domain join.
|
# preseed and it should restart because of domain join.
|
||||||
#notify:
|
#notify:
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
- name: Ensure needed packages are installed
|
- name: Ensure needed packages are installed
|
||||||
apt:
|
apt:
|
||||||
name:
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
- unattended-upgrades
|
- unattended-upgrades
|
||||||
- update-notifier-common
|
- update-notifier-common
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Configuring unattended upgrades from file
|
- name: Configuring unattended upgrades from file
|
||||||
copy:
|
copy:
|
||||||
|
@ -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 }
|
||||||
|
@ -28,18 +28,10 @@
|
|||||||
|
|
||||||
- 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
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
|
|
||||||
- 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,11 +0,0 @@
|
|||||||
---
|
|
||||||
# Final tasks.
|
|
||||||
|
|
||||||
- name: Ensuring APT stack is healthy
|
|
||||||
shell: dpkg --configure -a && apt-get install -f
|
|
||||||
|
|
||||||
# Correctly managing ansible-pull runs.
|
|
||||||
- name: Updating local version for repo
|
|
||||||
shell: 'rm -f {{ ansible_local.checksum.repover_file }} && echo "{{ ansible_local.checksum.repover }}" > {{ ansible_local.checksum.repover_file }}'
|
|
||||||
args:
|
|
||||||
warn: false
|
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
- name: Joining domain
|
- name: Joining domain
|
||||||
shell: 'net rpc join -U admin%{{ domainadminpasswd }}'
|
shell: 'net rpc join -U admin%{{ domainadminpasswd }}'
|
||||||
when: check_domain is changed
|
when: check_domain|changed
|
||||||
register: domainjoin
|
register: domainjoin
|
||||||
notify:
|
notify:
|
||||||
- reboot
|
- reboot
|
||||||
|
@ -24,4 +24,4 @@
|
|||||||
|
|
||||||
- name: Recompiling glib2 schemas
|
- name: Recompiling glib2 schemas
|
||||||
shell: glib-compile-schemas --strict /usr/share/glib-2.0/schemas/
|
shell: glib-compile-schemas --strict /usr/share/glib-2.0/schemas/
|
||||||
when: cfg_glib_users is changed or cfg_glib_mounted is changed or cfg_keyb_layout is changed
|
when: cfg_glib_users|changed or cfg_glib_mounted|changed or cfg_keyb_layout|changed
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
# Domain configurations
|
# Domain configurations
|
||||||
|
|
||||||
- include: networkmanager.yml
|
|
||||||
tags:
|
|
||||||
- domain
|
|
||||||
- networkmanager
|
|
||||||
|
|
||||||
- include: ntp.yml
|
- include: ntp.yml
|
||||||
tags:
|
tags:
|
||||||
- domain
|
- domain
|
||||||
@ -57,7 +52,5 @@
|
|||||||
- domain
|
- domain
|
||||||
- join
|
- join
|
||||||
|
|
||||||
- include: cleanup.yml
|
- name: Updating local version for repo
|
||||||
tags:
|
shell: 'rm -f {{ ansible_local.checksum.repover_file }} && echo "{{ ansible_local.checksum.repover }}" > {{ ansible_local.checksum.repover_file }}'
|
||||||
- domain
|
|
||||||
- cleanup
|
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
# Since students are disabling deliberately the network interface from
|
|
||||||
# NetworkManager, we insert the default interface in /etc/network/interfaces
|
|
||||||
# so they are not available to NM
|
|
||||||
|
|
||||||
- name: Ensuring first NIC will never be disabled again
|
|
||||||
lineinfile:
|
|
||||||
line: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
dest: /etc/network/interfaces
|
|
||||||
insertafter: EOF
|
|
||||||
with_items:
|
|
||||||
- " "
|
|
||||||
- "auto {{ ansible_default_ipv4.interface }}"
|
|
||||||
- "iface {{ ansible_default_ipv4.interface }} inet dhcp"
|
|
||||||
|
|
||||||
# Hiding NetworkManager icon from any sessions
|
|
||||||
|
|
||||||
- name: Disabling NetworkManager from popping up in sessions
|
|
||||||
shell: mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop.disabled
|
|
||||||
ignore_errors: yes
|
|
@ -26,4 +26,4 @@
|
|||||||
|
|
||||||
- name: Restarting NTP service
|
- name: Restarting NTP service
|
||||||
shell: service ntp restart
|
shell: service ntp restart
|
||||||
when: cfg_ntp is changed
|
when: cfg_ntp|changed
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#- name: Downgrading SAMBA if not the right version
|
#- name: Downgrading SAMBA if not the right version
|
||||||
# shell: "/var/lib/{{ ansible_local.domain.domainfull }}/bin/downgrade_samba.sh"
|
# shell: "/var/lib/{{ ansible_local.domain.domainfull }}/bin/downgrade_samba.sh"
|
||||||
# when: check_samba_version is changed
|
# when: check_samba_version|changed
|
||||||
#
|
#
|
||||||
#- name: Checking again for the correct SAMBA version
|
#- name: Checking again for the correct SAMBA version
|
||||||
# shell: dpkg -l | grep libsmbclient
|
# shell: dpkg -l | grep libsmbclient
|
||||||
@ -29,7 +29,8 @@
|
|||||||
|
|
||||||
- name: Installing domain packages
|
- name: Installing domain packages
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg: '{{ item }}'
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
- winbind
|
- winbind
|
||||||
- samba
|
- samba
|
||||||
state: present
|
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
- name: SAMBA restart
|
- name: SAMBA restart
|
||||||
shell: /sbin/restart smbd
|
shell: /sbin/restart smbd
|
||||||
when: cfg_samba is changed
|
when: cfg_samba|changed
|
||||||
|
|
||||||
- name: Winbind restart
|
- name: Winbind restart
|
||||||
shell: /sbin/restart winbind
|
shell: /sbin/restart winbind
|
||||||
when: cfg_samba is changed
|
when: cfg_samba|changed
|
||||||
|
|
||||||
- name: Creating home base
|
- name: Creating home base
|
||||||
file:
|
file:
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
- name: Adding certificates to the ones used by the system
|
- name: Adding certificates to the ones used by the system
|
||||||
shell: update-ca-certificates
|
shell: update-ca-certificates
|
||||||
when: proxycrt_dwnl is changed
|
when: proxycrt_dwnl|changed
|
||||||
|
|
||||||
- name: Firefox settings to include certificate
|
- name: Firefox settings to include certificate
|
||||||
get_url:
|
get_url:
|
||||||
|
@ -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
|
||||||
|
@ -7,18 +7,18 @@
|
|||||||
|
|
||||||
- name: Installing packages for specific role from NetworkPackageManager
|
- name: Installing packages for specific role from NetworkPackageManager
|
||||||
apt:
|
apt:
|
||||||
name: "{{ ansible_local.noderole.addpkg }}"
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
|
with_items: "{{ ansible_local.noderole.addpkg }}"
|
||||||
when: ansible_local.noderole.addpkg is defined and ansible_local.noderole.addpkg|join(' ')|trim != ''
|
when: ansible_local.noderole.addpkg is defined and ansible_local.noderole.addpkg|join(' ')|trim != ''
|
||||||
|
|
||||||
- name: Removing packages for specific role from NetworkPackageManager
|
- name: Removing packages for specific role from NetworkPackageManager
|
||||||
apt:
|
apt:
|
||||||
name: "{{ ansible_local.noderole.delpkg }}"
|
name: '{{ item }}'
|
||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
|
with_items: "{{ ansible_local.noderole.delpkg }}"
|
||||||
when: ansible_local.noderole.delpkg is defined and ansible_local.noderole.delpkg|join(' ')|trim != ''
|
when: ansible_local.noderole.delpkg is defined and ansible_local.noderole.delpkg|join(' ')|trim != ''
|
||||||
|
|
||||||
- name: Updating local hash for packages
|
- name: Updating local hash for packages
|
||||||
shell: 'rm -f {{ ansible_local.checksum.pkgver_file }} && echo "{{ ansible_local.checksum.pkgver }}" > {{ ansible_local.checksum.pkgver_file }}'
|
shell: 'rm -f {{ ansible_local.checksum.pkgver_file }} && echo "{{ ansible_local.checksum.pkgver }}" > {{ ansible_local.checksum.pkgver_file }}'
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
|
@ -15,6 +15,4 @@
|
|||||||
|
|
||||||
- name: Applying local signed fixes
|
- name: Applying local signed fixes
|
||||||
shell: "/usr/bin/curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/fixes/{{ item }} | /usr/bin/gpg --passphrase {{ domainadminpasswd }} --decrypt | sudo /bin/bash"
|
shell: "/usr/bin/curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/fixes/{{ item }} | /usr/bin/gpg --passphrase {{ domainadminpasswd }} --decrypt | sudo /bin/bash"
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
with_items: "{{ ansible_local.domain.apply_fixes|default([]) }}"
|
with_items: "{{ ansible_local.domain.apply_fixes|default([]) }}"
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Fixing APT issues, every time.
|
|
||||||
shell: dpkg --configure -a && apt-get install -f
|
|
||||||
|
|
||||||
- name: Domain settings download
|
- name: Domain settings download
|
||||||
get_url:
|
get_url:
|
||||||
url: "http://{{ ansible_default_ipv4.gateway }}:3000/domain"
|
url: "http://{{ ansible_default_ipv4.gateway }}:3000/domain"
|
||||||
|
@ -8,51 +8,6 @@
|
|||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list
|
||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
- name: Checking for libreoffice PPA GPG key
|
|
||||||
shell: apt-key list | grep -q 1378B444
|
|
||||||
register: check_gpg_libreoffice
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Installing libreoffice PPA GPG key
|
|
||||||
shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 1378B444
|
|
||||||
when: check_gpg_libreoffice is failed
|
|
||||||
|
|
||||||
- name: Checking for ansible PPA GPG key
|
|
||||||
shell: apt-key list | grep -q 7BB9C367
|
|
||||||
register: check_gpg_ansible
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Installing ansible PPA GPG key
|
|
||||||
shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 7BB9C367
|
|
||||||
when: check_gpg_ansible is failed
|
|
||||||
|
|
||||||
- name: Checking for epoptes PPA GPG key
|
|
||||||
shell: apt-key list | grep -q 0350B375
|
|
||||||
register: check_gpg_epoptes
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Installing epoptes PPA GPG key
|
|
||||||
shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 0350B375
|
|
||||||
when: check_gpg_epoptes is failed
|
|
||||||
|
|
||||||
- name: Checking for geogebra GPG key
|
|
||||||
shell: apt-key list | grep -q 83A736CF
|
|
||||||
register: check_gpg_geogebra
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Installing geogebra GPG key
|
|
||||||
shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 83A736CF
|
|
||||||
when: check_gpg_geogebra is failed
|
|
||||||
|
|
||||||
- name: Removing old repositories (if present)
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: absent
|
|
||||||
with_items:
|
|
||||||
- ansible.list
|
|
||||||
- geogebra.list
|
|
||||||
- libreoffice.list
|
|
||||||
|
|
||||||
- name: Adding additional repositories
|
- name: Adding additional repositories
|
||||||
get_url:
|
get_url:
|
||||||
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/repoconfig/{{ item }}"
|
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/repoconfig/{{ item }}"
|
||||||
@ -61,8 +16,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- ansible-ansible-trusty.list
|
- ansible-ansible-trusty.list
|
||||||
- libreoffice-ppa-trusty.list
|
- libreoffice-ppa-trusty.list
|
||||||
- epoptes-ppa-trusty.list
|
|
||||||
- geogebra-stable.list
|
|
||||||
- bglug-trusty.list
|
- bglug-trusty.list
|
||||||
|
|
||||||
- name: Updating package database
|
- name: Updating package database
|
||||||
|
Loading…
x
Reference in New Issue
Block a user