From da730566de196c0fd24dacedcfcc0bab5eb036ab Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Tue, 31 Oct 2017 13:08:42 -0500 Subject: [PATCH] remove first_run from 1-prep main.yml --- roles/1-prep/tasks/main.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/roles/1-prep/tasks/main.yml b/roles/1-prep/tasks/main.yml index cff1ba0a7..05010b77a 100644 --- a/roles/1-prep/tasks/main.yml +++ b/roles/1-prep/tasks/main.yml @@ -50,13 +50,13 @@ - name: Disable AppArmor -- on by default in Ubuntu service: name=apparmor enabled=False state=stopped - when: first_run and is_ubuntu + when: is_ubuntu ignore_errors: true - name: Disable SELinux on next boot selinux: state=disabled register: selinux_disabled - when: first_run and not is_debuntu + when: not is_debuntu - name: Disable SELinux for this session (if needed) command: setenforce Permissive @@ -64,7 +64,6 @@ ## DISCOVER PLATFORMS ###### - include_tasks: prep.yml - when: first_run # Put conditional actions for hardware platforms here - include_tasks: raspberry_pi_2.yml @@ -74,12 +73,11 @@ shell: "lsusb | grep 8087:0a2b | wc |awk '{print $1}'" register: usb_NUC6 ignore_errors: true - when: first_run - name: Download the firmware for built-in WiFi on NUC6 get_url: dest=/lib/firmware url={{ iiab_download_url }}/iwlwifi-8000C-13.ucode - when: first_run and usb_NUC6.stdout|int > 0 + when: usb_NUC6.stdout|int > 0 # this script can be sourced to get IIAB location - name: Recording STAGE 1 HAS COMPLETED ============================