This repository was archived by the owner on Aug 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.yaml
More file actions
75 lines (64 loc) · 1.54 KB
/
setup.yaml
File metadata and controls
75 lines (64 loc) · 1.54 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
- hosts: all
become: yes
# Don't gather facts as the setup module fails on archlinux/c101pa
gather_facts: false
tasks:
- name: Delete default user
user:
name: alarm
state: absent
- name: set hostname
hostname:
name: "{{ hostname }}"
- name: set timezone
timezone:
name: "{{ timezone }}"
- name: full system upgrade
when: no_upgrade is undefined
pacman:
update_cache: yes
upgrade: yes
- name: install packages
pacman:
name: "{{ packages }}"
state: present
- name: setup sudoers
copy:
src: "files/sudoers"
dest: "/etc/sudoers"
owner: root
group: root
mode: 0440
- name: reconfigure ntp
copy:
src: "files/ntp.conf"
dest: "/etc/ntp.conf"
owner: root
group: root
mode: 0644
- name: configure backlight rules
copy:
src: "files/backlight.rules"
dest: "/etc/udev/rules.d/backlight.rules"
owner: root
group: root
mode: 0444
- name: configure locale
command: localectl set-x11-keymap gb chromebook
- name: copy skel files
copy:
src: "files/skel/"
dest: "/etc/skel/"
owner: root
group: root
mode: 0755
- name: create users(s)
with_dict: "{{ users }}"
user:
name: "{{ item.key }}"
password: "{{ item.value.password }}"
groups:
- audio
- docker
- video
- wheel