rpi-base/tasks/main.yml
changeset 34 ecbdaed7f151
parent 14 47937f95ac26
child 126 1fe8b35714f6
--- a/rpi-base/tasks/main.yml	Sat May 30 20:57:42 2020 -0500
+++ b/rpi-base/tasks/main.yml	Sun Jun 07 21:55:46 2020 -0500
@@ -17,14 +17,6 @@
   become: yes
   apt_repository: repo="deb http://packages.azlux.fr/debian/ buster main"
 
-- name: configure log2ram disk size
-  become: yes
-  lineinfile:
-    path: "/etc/log2ram.conf"
-    regexp: "^SIZE="
-    line: "SIZE={{rpi_base_log_size}}"
-  notify: restart log2ram service
-
 - name: set timezone
   become: yes
   timezone: name="{{rpi_base_timezone}}"
@@ -41,7 +33,15 @@
   become: yes
   apt: name="{{rpi_base_apt_packages}}" state="latest"
 
-- name: install fail2ban config
+- name: configure log2ram disk size
+  become: yes
+  lineinfile:
+    path: "/etc/log2ram.conf"
+    regexp: "^SIZE="
+    line: "SIZE={{rpi_base_log_size}}"
+  notify: restart log2ram service
+
+- name: configure fail2ban
   become: yes
   copy: src="jail.local" dest="/etc/fail2ban/jail.local"