1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-11-02 21:28:26 -04:00 committed by GitHub
parent 4c4ca0e498
commit 29513f60b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,18 +3,18 @@
- name: ...IS BEGINNING ============================================ - name: ...IS BEGINNING ============================================
command: echo command: echo
- name: Install uuidgen program (debuntu) - name: Install uuid-runtime package (debuntu)
package: package:
name: uuid-runtime name: uuid-runtime
state: present state: present
when: is_debuntu when: is_debuntu
- name: Test for /etc/iiab/uuid file - name: Does /etc/iiab/uuid file exist?
stat: stat:
path: /etc/iiab/uuid path: /etc/iiab/uuid
register: uuid_file register: uuid_file
- name: Create folder to hold uuid - name: If not, create folder /etc/iiab
file: file:
path: /etc/iiab path: /etc/iiab
state: directory state: directory
@ -25,15 +25,15 @@
register: uuid_response register: uuid_response
when: not uuid_file.stat.exists 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 shell: echo {{ uuid_response.stdout_lines[0] }} > /etc/iiab/uuid
when: not uuid_file.stat.exists 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 command: cat /etc/iiab/uuid
register: stored_uuid register: stored_uuid
- name: Get the value into a variable - name: Place the uuid in variable/fact "uuid"
set_fact: set_fact:
uuid: "{{ stored_uuid.stdout_lines[0] }}" uuid: "{{ stored_uuid.stdout_lines[0] }}"
@ -56,7 +56,7 @@
tags: openvpn tags: openvpn
# for rpi, without rtc, we need time as soon as possible # 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: package:
name: chrony name: chrony
state: present state: present
@ -64,11 +64,11 @@
- download - download
#TODO: Use regexp filter instead of hard-code ip #TODO: Use regexp filter instead of hard-code ip
- name: Update chrony config file - name: Install /etc/chrony.conf from template
template: template:
backup: no
dest: /etc/chrony.conf
src: chrony.conf.j2 src: chrony.conf.j2
dest: /etc/chrony.conf
backup: no
- name: Disable AppArmor -- override OS default (ubuntu) - name: Disable AppArmor -- override OS default (ubuntu)
service: service:
@ -98,7 +98,7 @@
register: usb_NUC6 register: usb_NUC6
ignore_errors: true 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: get_url:
url: "{{ iiab_download_url }}/iwlwifi-8000C-13.ucode" url: "{{ iiab_download_url }}/iwlwifi-8000C-13.ucode"
dest: /lib/firmware dest: /lib/firmware