author | Luke Hoersten <luke@hoersten.org> |
Mon, 30 Jul 2018 21:19:20 -0500 | |
changeset 21 | 6ad3cf1d57c3 |
parent 14 | 1d79e73c881f |
child 22 | 00185499ed12 |
permissions | -rw-r--r-- |
0 | 1 |
--- |
2 |
||
5
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
3 |
- name: turn swap off |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
4 |
become: yes |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
5 |
command: "swapoff -a" |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
6 |
changed_when: false |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
7 |
|
0 | 8 |
- name: setup wifi |
9 |
become: yes |
|
10 |
template: |
|
11 |
src: "wpa_supplicant.conf.j2" |
|
12 |
dest: "/etc/wpa_supplicant/wpa_supplicant.conf" |
|
13 |
mode: 0644 |
|
14 |
||
15 |
- name: update apt package cache |
|
16 |
become: yes |
|
17 |
apt: upgrade="dist" update_cache="yes" cache_valid_time="3600" |
|
18 |
||
19 |
- name: install extra apt packages |
|
20 |
become: yes |
|
21 |
apt: name="{{item}}" |
|
9
511e97bd5566
Created custom automationhat role.
Luke Hoersten <luke@hoersten.org>
parents:
5
diff
changeset
|
22 |
with_items: "{{rpi_base_apt_packages}}" |
0 | 23 |
|
24 |
- name: authorize admin ssh keys |
|
25 |
become: yes |
|
5
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
26 |
authorized_key: user="pi" key="https://github.com/{{github_user}}.keys" |
14
1d79e73c881f
Moved package changes until wifi is set up.
Luke Hoersten <luke@hoersten.org>
parents:
9
diff
changeset
|
27 |
|
1d79e73c881f
Moved package changes until wifi is set up.
Luke Hoersten <luke@hoersten.org>
parents:
9
diff
changeset
|
28 |
- name: remove swap apt package |
1d79e73c881f
Moved package changes until wifi is set up.
Luke Hoersten <luke@hoersten.org>
parents:
9
diff
changeset
|
29 |
become: yes |
1d79e73c881f
Moved package changes until wifi is set up.
Luke Hoersten <luke@hoersten.org>
parents:
9
diff
changeset
|
30 |
apt: state="absent" name="dphys-swapfile" |