roles/rpi-base/tasks/main.yml
changeset 22 00185499ed12
parent 14 1d79e73c881f
--- a/roles/rpi-base/tasks/main.yml	Mon Jul 30 21:19:20 2018 -0500
+++ b/roles/rpi-base/tasks/main.yml	Mon Sep 23 18:25:33 2019 -0500
@@ -11,6 +11,7 @@
     src: "wpa_supplicant.conf.j2"
     dest: "/etc/wpa_supplicant/wpa_supplicant.conf"
     mode: 0644
+  when: rpi_enable_wifi
 
 - name: update apt package cache
   become: yes
@@ -18,8 +19,7 @@
 
 - name: install extra apt packages
   become: yes
-  apt: name="{{item}}"
-  with_items: "{{rpi_base_apt_packages}}"
+  apt: name="{{rpi_base_apt_packages}}"
 
 - name: authorize admin ssh keys
   become: yes