roles/rpi-base/tasks/main.yml
changeset 14 1d79e73c881f
parent 9 511e97bd5566
child 22 00185499ed12
equal deleted inserted replaced
13:684ac329e7da 14:1d79e73c881f
     2 
     2 
     3 - name: turn swap off
     3 - name: turn swap off
     4   become: yes
     4   become: yes
     5   command: "swapoff -a"
     5   command: "swapoff -a"
     6   changed_when: false
     6   changed_when: false
     7 
       
     8 - name: remove swap apt package
       
     9   become: yes
       
    10   apt: state="absent" name="dphys-swapfile"
       
    11 
     7 
    12 - name: setup wifi
     8 - name: setup wifi
    13   become: yes
     9   become: yes
    14   template:
    10   template:
    15     src: "wpa_supplicant.conf.j2"
    11     src: "wpa_supplicant.conf.j2"
    26   with_items: "{{rpi_base_apt_packages}}"
    22   with_items: "{{rpi_base_apt_packages}}"
    27 
    23 
    28 - name: authorize admin ssh keys
    24 - name: authorize admin ssh keys
    29   become: yes
    25   become: yes
    30   authorized_key: user="pi" key="https://github.com/{{github_user}}.keys"
    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"