equal
deleted
inserted
replaced
1 --- |
|
2 |
|
3 - name: turn swap off |
|
4 become: yes |
|
5 command: "swapoff -a" |
|
6 changed_when: false |
|
7 |
|
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 when: rpi_enable_wifi |
|
15 |
|
16 - name: update apt package cache |
|
17 become: yes |
|
18 apt: upgrade="dist" update_cache="yes" cache_valid_time="3600" |
|
19 |
|
20 - name: install extra apt packages |
|
21 become: yes |
|
22 apt: name="{{rpi_base_apt_packages}}" |
|
23 |
|
24 - name: authorize admin ssh keys |
|
25 become: yes |
|
26 authorized_key: user="pi" key="https://github.com/{{github_user}}.keys" |
|
27 |
|
28 - name: remove swap apt package |
|
29 become: yes |
|
30 apt: state="absent" name="dphys-swapfile" |
|