rpi-base/tasks/main.yml
changeset 13 c74df4bbd49d
parent 10 524cf40846b3
child 14 47937f95ac26
equal deleted inserted replaced
12:80a6e9af6aa9 13:c74df4bbd49d
    14   apt_key: url="https://azlux.fr/repo.gpg.key"
    14   apt_key: url="https://azlux.fr/repo.gpg.key"
    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 
       
    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
    19 
    27 
    20 - name: set timezone
    28 - name: set timezone
    21   become: yes
    29   become: yes
    22   timezone: name="{{rpi_base_timezone}}"
    30   timezone: name="{{rpi_base_timezone}}"
    23 
    31 
    47 
    55 
    48 - name: authorize admin ssh keys
    56 - name: authorize admin ssh keys
    49   become: yes
    57   become: yes
    50   authorized_key: user="{{admin_user_name}}" key="https://github.com/{{github_user}}.keys"
    58   authorized_key: user="{{admin_user_name}}" key="https://github.com/{{github_user}}.keys"
    51 
    59 
    52 - name: authorize pi ssh keys
    60 - name: authorize ssh keys
    53   become: yes
    61   become: yes
    54   authorized_key: user="{{ansible_user}}" key="https://github.com/{{github_user}}.keys"
    62   authorized_key: user="{{ansible_user}}" key="https://github.com/{{github_user}}.keys"
    55 
    63 
    56 - name: nopasswd sudo for admin user
    64 - name: nopasswd sudo for admin user
    57   become: yes
    65   become: yes