31 lines
725 B
YAML
31 lines
725 B
YAML
#cloud-config
|
|
|
|
hostname: rpi-boot-initial
|
|
manage_etc_hosts: true
|
|
|
|
write_files:
|
|
- content: |
|
|
allow-hotplug wlan0
|
|
iface wlan0 inet dhcp
|
|
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
|
iface default inet dhcp
|
|
path: /etc/network/interfaces.d/wlan0
|
|
- content: |
|
|
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
|
update_config=1
|
|
network={
|
|
ssid="Fancy Pants"
|
|
psk=972fd9f00867515794d35db58cb9140e4a90bc9c693abceed1d71f7f065c5df7
|
|
key_mgmt=WPA-PSK
|
|
}
|
|
path: /etc/wpa_supplicant/wpa_supplicant.conf
|
|
|
|
locale: "en_US.UTF-8"
|
|
|
|
package_upgrade: true
|
|
packages:
|
|
- ansible
|
|
|
|
runcmd:
|
|
- ansible-pull -U https://juju.nz/src/michaelh/rpi-boot.git -C dev --purge
|