-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
62 lines (57 loc) · 1.7 KB
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
- name: "ChromeOS: Welcome to Estonia"
hosts: localhost
connection: local
become: true
tasks:
- block: # Install Firefox and plugins
- name: Install Firefox
apt:
name: firefox-esr
- name: Print instructions
debug:
msg:
- "# MANUAL STEPS REQUIRED:"
- ""
- "1. Open Firefox"
- "2. Install the following extension:"
- " https://addons.mozilla.org/en-US/firefox/addon/web-eid-webextension "
- block: # Install card software
- name: Add public key
apt_key:
url: https://installer.id.ee/media/install-scripts/C6C83D68.pub
id: A754225DA61EA549
- name: Add repository
apt_repository:
repo: deb https://installer.id.ee/media/ubuntu/ jammy main
filename: ria-repository
update_cache: yes
- name: Install packages
apt:
name: [open-eid, opensc, inotify-tools]
update_cache: yes
# inotify-tools is required for the system service below
- block: # Install system service
- name: Ensure USB folder exists
file:
path: /dev/bus/usb/
state: directory
- name: Create script folder
file:
path: /opt/chromeos-welcome-to-estonia
state: directory
- name: Copy script
copy:
src: monitor-usb.sh
dest: /opt/chromeos-welcome-to-estonia/monitor-usb.sh
mode: u+x
- name: Copy service file
copy:
src: chromeos-welcome-to-estonia.service
dest: /etc/systemd/system/chromeos-welcome-to-estonia.service
- name: Enable service
systemd_service:
state: restarted
enabled: true
daemon_reload: true
name: chromeos-welcome-to-estonia