From 29513f60b3f4bbe471be25e676d214d5398b24bc Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 2 Nov 2018 21:28:26 -0400 Subject: [PATCH] Update main.yml --- roles/1-prep/tasks/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/roles/1-prep/tasks/main.yml b/roles/1-prep/tasks/main.yml index a71515629..9f8a2fcbe 100644 --- a/roles/1-prep/tasks/main.yml +++ b/roles/1-prep/tasks/main.yml @@ -3,18 +3,18 @@ - name: ...IS BEGINNING ============================================ command: echo -- name: Install uuidgen program (debuntu) +- name: Install uuid-runtime package (debuntu) package: name: uuid-runtime state: present when: is_debuntu -- name: Test for /etc/iiab/uuid file +- name: Does /etc/iiab/uuid file exist? stat: path: /etc/iiab/uuid register: uuid_file -- name: Create folder to hold uuid +- name: If not, create folder /etc/iiab file: path: /etc/iiab state: directory @@ -25,15 +25,15 @@ register: uuid_response when: not uuid_file.stat.exists -- name: Put the uuid in place +- name: Put uuid in place at /etc/iiab/uuid shell: echo {{ uuid_response.stdout_lines[0] }} > /etc/iiab/uuid when: not uuid_file.stat.exists -- name: Get the uuid +- name: Grab the uuid from /etc/iiab/uuid, into register stored_uuid command: cat /etc/iiab/uuid register: stored_uuid -- name: Get the value into a variable +- name: Place the uuid in variable/fact "uuid" set_fact: uuid: "{{ stored_uuid.stdout_lines[0] }}" @@ -56,7 +56,7 @@ tags: openvpn # for rpi, without rtc, we need time as soon as possible -- name: Install chrony package +- name: Install chrony package (an NTP package) for RPi's lacking RTC package: name: chrony state: present @@ -64,11 +64,11 @@ - download #TODO: Use regexp filter instead of hard-code ip -- name: Update chrony config file +- name: Install /etc/chrony.conf from template template: - backup: no - dest: /etc/chrony.conf src: chrony.conf.j2 + dest: /etc/chrony.conf + backup: no - name: Disable AppArmor -- override OS default (ubuntu) service: @@ -98,7 +98,7 @@ register: usb_NUC6 ignore_errors: true -- name: Download the firmware for built-in WiFi on NUC6 +- name: Download {{ iiab_download_url }}/iwlwifi-8000C-13.ucode to /lib/firmware for built-in WiFi on NUC6 get_url: url: "{{ iiab_download_url }}/iwlwifi-8000C-13.ucode" dest: /lib/firmware