1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move iiab.env template - add starting STAGE=1 - update STAGE on the fly part 1

This commit is contained in:
Jerry Vonau 2017-10-28 12:46:47 -05:00
parent ef914cac7c
commit d907568c4b
4 changed files with 20 additions and 7 deletions

View file

@ -88,5 +88,13 @@
url={{ iiab_download_url }}/iwlwifi-8000C-13.ucode
when: first_run and usb_NUC6.stdout|int > 0
# this script can be sourced to get IIAB location
- name: Create iiab.env file
template: src=roles/1-prep/templates/iiab.env.j2
dest=/etc/iiab/iiab.env
owner=root
group=root
mode=0644
- name: ...HAS COMPLETED ===========================================
command: echo

View file

@ -5,3 +5,4 @@ IIAB_DIR={{ iiab_dir }}
OS={{ ansible_local.local_facts.os }}
OS_VER={{ ansible_local.local_facts.os_ver }}
WWWROOT={{ doc_root }}
STAGE=1

View file

@ -48,5 +48,11 @@
- include: udev.yml
- name: Record STAGE
lineinfile: dest=/etc/iiab/iiab.env
regexp='^STAGE=*'
line='STAGE=2'
state=present
- name: ...HAS COMPLETED =========================================
command: echo

View file

@ -57,13 +57,11 @@
when: usb_lib_install
tags: usb-lib
# this script can be sourced to get IIAB location
- name: Create iiab.env file
template: src=roles/1-prep/templates/iiab.env.j2
dest=/etc/iiab/iiab.env
owner=root
group=root
mode=0644
- name: Record STAGE
lineinfile: dest=/etc/iiab/iiab.env
regexp='^STAGE=*'
line='STAGE=4'
state=present
- name: Put a Python interface to iiab.env
template: src=roles/1-prep/templates/iiab_env.py.j2