Add extra package selection.

This commit is contained in:
Andreas B. Mundt 2018-06-09 19:48:41 +03:00
parent 2c4ef85dca
commit 9010cf710b
3 changed files with 26 additions and 6 deletions

11
README
View file

@ -10,9 +10,9 @@ Installbox
- LAN interface not configured/managed - LAN interface not configured/managed
• Customize installbox.yml: • Customize installbox.yml:
- set if_lan - set if_lan (mandatory)
- modify deb_mirror (optional) - modify deb_mirror
- enable installbox2kiosk task (optinal) - enable installbox2kiosk task
• Run ansible: • Run ansible:
ssh-copy-id ansible@1.2.3.4 ssh-copy-id ansible@1.2.3.4
@ -25,8 +25,9 @@ Kiosk
- user 'ansible' in sudo group - user 'ansible' in sudo group
• Customize kiosk.yml: • Customize kiosk.yml:
- WiFi parameters (optional) - WiFi parameters
- desktop environment (optional) - package selection: extra_pkgs and extra_pkgs_bpo for backports
- desktop environment
• Run ansible: • Run ansible:
ssh-copy-id ansible@1.2.3.4 ssh-copy-id ansible@1.2.3.4

View file

@ -2,13 +2,18 @@
# This playbook deploys a kiosk-computer # This playbook deploys a kiosk-computer
- name: apply configuration to the machines - name: apply configuration to the machines
hosts: kiosk-computers hosts: all
remote_user: ansible remote_user: ansible
become: yes become: yes
vars: vars:
auto_user: debi auto_user: debi
wifi_ssid: "YOUR SSID HERE" wifi_ssid: "YOUR SSID HERE"
wifi_passwd: "YOUR WIFI-PW HERE" wifi_passwd: "YOUR WIFI-PW HERE"
extra_pkgs:
- unattended-upgrades
- xul-ext-ublock-origin
extra_pkgs_bpo:
- libreoffice
roles: roles:
- up2date-debian - up2date-debian

View file

@ -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 - name: check if gdm3 is installed
stat: path=/etc/gdm3/daemon.conf stat: path=/etc/gdm3/daemon.conf
register: gdm3 register: gdm3