From 9010cf710b3c2f0533cd222ccfe3c08e2f0b71c6 Mon Sep 17 00:00:00 2001 From: "Andreas B. Mundt" Date: Sat, 9 Jun 2018 19:48:41 +0300 Subject: [PATCH] Add extra package selection. --- README | 11 ++++++----- kiosk.yml | 7 ++++++- roles/kiosk/tasks/main.yml | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/README b/README index a1ba3ac..6f3c21a 100644 --- a/README +++ b/README @@ -10,9 +10,9 @@ Installbox - LAN interface not configured/managed • Customize installbox.yml: - - set if_lan - - modify deb_mirror (optional) - - enable installbox2kiosk task (optinal) + - set if_lan (mandatory) + - modify deb_mirror + - enable installbox2kiosk task • Run ansible: ssh-copy-id ansible@1.2.3.4 @@ -25,8 +25,9 @@ Kiosk - user 'ansible' in sudo group • Customize kiosk.yml: - - WiFi parameters (optional) - - desktop environment (optional) + - WiFi parameters + - package selection: extra_pkgs and extra_pkgs_bpo for backports + - desktop environment • Run ansible: ssh-copy-id ansible@1.2.3.4 diff --git a/kiosk.yml b/kiosk.yml index c01ea65..e782774 100644 --- a/kiosk.yml +++ b/kiosk.yml @@ -2,13 +2,18 @@ # This playbook deploys a kiosk-computer - name: apply configuration to the machines - hosts: kiosk-computers + hosts: all remote_user: ansible become: yes vars: auto_user: debi wifi_ssid: "YOUR SSID HERE" wifi_passwd: "YOUR WIFI-PW HERE" + extra_pkgs: + - unattended-upgrades + - xul-ext-ublock-origin + extra_pkgs_bpo: + - libreoffice roles: - up2date-debian diff --git a/roles/kiosk/tasks/main.yml b/roles/kiosk/tasks/main.yml index 91d8cd1..288c461 100644 --- a/roles/kiosk/tasks/main.yml +++ b/roles/kiosk/tasks/main.yml @@ -1,3 +1,17 @@ +- name: add stretch-backports + apt_repository: + repo: deb http://deb.debian.org/debian/ stretch-backports main + state: present + update_cache: yes + +- name: install extra packages from stable + apt: name={{ item }} state=latest + with_items: "{{ extra_pkgs }}" + +- name: install extra packages from backports + apt: name={{ item }} state=latest default_release=stretch-backports + with_items: "{{ extra_pkgs_bpo }}" + - name: check if gdm3 is installed stat: path=/etc/gdm3/daemon.conf register: gdm3