roles/rpi-base/tasks/main.yml
changeset 5 8e3d93a69233
parent 4 9ae95d5fa0b7
child 9 511e97bd5566
equal deleted inserted replaced
4:9ae95d5fa0b7 5:8e3d93a69233
     1 ---
     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"
     2 
    11 
     3 - name: setup wifi
    12 - name: setup wifi
     4   become: yes
    13   become: yes
     5   template:
    14   template:
     6     src: "wpa_supplicant.conf.j2"
    15     src: "wpa_supplicant.conf.j2"
    16   apt: name="{{item}}"
    25   apt: name="{{item}}"
    17   with_items: "{{ubuntu_base_apt_packages}}"
    26   with_items: "{{ubuntu_base_apt_packages}}"
    18 
    27 
    19 - name: authorize admin ssh keys
    28 - name: authorize admin ssh keys
    20   become: yes
    29   become: yes
    21   authorized_key: "user=pi key=https://github.com/{{github_user}}.keys"
    30   authorized_key: user="pi" key="https://github.com/{{github_user}}.keys"