rpi-base/tasks/main.yml
changeset 34 ecbdaed7f151
parent 14 47937f95ac26
child 126 1fe8b35714f6
equal deleted inserted replaced
33:ad75fc2d2853 34:ecbdaed7f151
    15 
    15 
    16 - name: add log2ram apt repo
    16 - name: add log2ram apt repo
    17   become: yes
    17   become: yes
    18   apt_repository: repo="deb http://packages.azlux.fr/debian/ buster main"
    18   apt_repository: repo="deb http://packages.azlux.fr/debian/ buster main"
    19 
    19 
    20 - name: configure log2ram disk size
       
    21   become: yes
       
    22   lineinfile:
       
    23     path: "/etc/log2ram.conf"
       
    24     regexp: "^SIZE="
       
    25     line: "SIZE={{rpi_base_log_size}}"
       
    26   notify: restart log2ram service
       
    27 
       
    28 - name: set timezone
    20 - name: set timezone
    29   become: yes
    21   become: yes
    30   timezone: name="{{rpi_base_timezone}}"
    22   timezone: name="{{rpi_base_timezone}}"
    31 
    23 
    32 - name: setup wifi
    24 - name: setup wifi
    39 
    31 
    40 - name: install extra apt packages
    32 - name: install extra apt packages
    41   become: yes
    33   become: yes
    42   apt: name="{{rpi_base_apt_packages}}" state="latest"
    34   apt: name="{{rpi_base_apt_packages}}" state="latest"
    43 
    35 
    44 - name: install fail2ban config
    36 - name: configure log2ram disk size
       
    37   become: yes
       
    38   lineinfile:
       
    39     path: "/etc/log2ram.conf"
       
    40     regexp: "^SIZE="
       
    41     line: "SIZE={{rpi_base_log_size}}"
       
    42   notify: restart log2ram service
       
    43 
       
    44 - name: configure fail2ban
    45   become: yes
    45   become: yes
    46   copy: src="jail.local" dest="/etc/fail2ban/jail.local"
    46   copy: src="jail.local" dest="/etc/fail2ban/jail.local"
    47 
    47 
    48 - name: add users
    48 - name: add users
    49   become: yes
    49   become: yes