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: remove swap apt package |
|
9 become: yes |
|
10 apt: state="absent" name="dphys-swapfile" |
|
11 |
|
12 - name: add log2ram apt key |
|
13 become: yes |
|
14 apt_key: url="https://azlux.fr/repo.gpg.key" |
|
15 |
|
16 - name: add log2ram apt repo |
|
17 become: yes |
|
18 apt_repository: repo="deb http://packages.azlux.fr/debian/ buster main" |
|
19 |
|
20 - name: set timezone |
|
21 become: yes |
|
22 timezone: name="{{rpi_base_timezone}}" |
|
23 |
|
24 - name: setup wifi |
|
25 become: yes |
|
26 template: src="wpa_supplicant.conf.j2" dest="/etc/wpa_supplicant/wpa_supplicant.conf" mode="0644" |
|
27 |
|
28 - name: update apt package cache |
|
29 become: yes |
|
30 apt: upgrade="dist" autoremove="yes" autoclean="yes" update_cache="yes" cache_valid_time="3600" |
|
31 |
|
32 - name: install extra apt packages |
|
33 become: yes |
|
34 apt: name="{{rpi_base_apt_packages}}" state="latest" |
|
35 |
|
36 - name: install fail2ban config |
|
37 become: yes |
|
38 copy: src="jail.local" dest="/etc/fail2ban/jail.local" |
|
39 |
|
40 - name: authorize admin ssh keys |
|
41 become: yes |
|
42 authorized_key: user="{{ansible_user}}" key="https://github.com/{{github_user}}.keys" |