author | Luke Hoersten <luke@hoersten.org> |
Mon, 05 Feb 2018 20:56:12 -0600 | |
changeset 13 | 684ac329e7da |
parent 9 | 511e97bd5566 |
child 14 | 1d79e73c881f |
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 |
|
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
8 |
- name: remove swap apt package |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
9 |
become: yes |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
10 |
apt: state="absent" name="dphys-swapfile" |
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
11 |
|
0 | 12 |
- name: setup wifi |
13 |
become: yes |
|
14 |
template: |
|
15 |
src: "wpa_supplicant.conf.j2" |
|
16 |
dest: "/etc/wpa_supplicant/wpa_supplicant.conf" |
|
17 |
mode: 0644 |
|
18 |
||
19 |
- name: update apt package cache |
|
20 |
become: yes |
|
21 |
apt: upgrade="dist" update_cache="yes" cache_valid_time="3600" |
|
22 |
||
23 |
- name: install extra apt packages |
|
24 |
become: yes |
|
25 |
apt: name="{{item}}" |
|
9
511e97bd5566
Created custom automationhat role.
Luke Hoersten <luke@hoersten.org>
parents:
5
diff
changeset
|
26 |
with_items: "{{rpi_base_apt_packages}}" |
0 | 27 |
|
28 |
- name: authorize admin ssh keys |
|
29 |
become: yes |
|
5
8e3d93a69233
Disabled rpi swap because it kills the sd cards.
Luke Hoersten <luke@hoersten.org>
parents:
4
diff
changeset
|
30 |
authorized_key: user="pi" key="https://github.com/{{github_user}}.keys" |