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:
parent
ef914cac7c
commit
d907568c4b
4 changed files with 20 additions and 7 deletions
|
@ -88,5 +88,13 @@
|
||||||
url={{ iiab_download_url }}/iwlwifi-8000C-13.ucode
|
url={{ iiab_download_url }}/iwlwifi-8000C-13.ucode
|
||||||
when: first_run and usb_NUC6.stdout|int > 0
|
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 ===========================================
|
- name: ...HAS COMPLETED ===========================================
|
||||||
command: echo
|
command: echo
|
||||||
|
|
|
@ -5,3 +5,4 @@ IIAB_DIR={{ iiab_dir }}
|
||||||
OS={{ ansible_local.local_facts.os }}
|
OS={{ ansible_local.local_facts.os }}
|
||||||
OS_VER={{ ansible_local.local_facts.os_ver }}
|
OS_VER={{ ansible_local.local_facts.os_ver }}
|
||||||
WWWROOT={{ doc_root }}
|
WWWROOT={{ doc_root }}
|
||||||
|
STAGE=1
|
||||||
|
|
|
@ -48,5 +48,11 @@
|
||||||
|
|
||||||
- include: udev.yml
|
- include: udev.yml
|
||||||
|
|
||||||
|
- name: Record STAGE
|
||||||
|
lineinfile: dest=/etc/iiab/iiab.env
|
||||||
|
regexp='^STAGE=*'
|
||||||
|
line='STAGE=2'
|
||||||
|
state=present
|
||||||
|
|
||||||
- name: ...HAS COMPLETED =========================================
|
- name: ...HAS COMPLETED =========================================
|
||||||
command: echo
|
command: echo
|
||||||
|
|
|
@ -57,13 +57,11 @@
|
||||||
when: usb_lib_install
|
when: usb_lib_install
|
||||||
tags: usb-lib
|
tags: usb-lib
|
||||||
|
|
||||||
# this script can be sourced to get IIAB location
|
- name: Record STAGE
|
||||||
- name: Create iiab.env file
|
lineinfile: dest=/etc/iiab/iiab.env
|
||||||
template: src=roles/1-prep/templates/iiab.env.j2
|
regexp='^STAGE=*'
|
||||||
dest=/etc/iiab/iiab.env
|
line='STAGE=4'
|
||||||
owner=root
|
state=present
|
||||||
group=root
|
|
||||||
mode=0644
|
|
||||||
|
|
||||||
- name: Put a Python interface to iiab.env
|
- name: Put a Python interface to iiab.env
|
||||||
template: src=roles/1-prep/templates/iiab_env.py.j2
|
template: src=roles/1-prep/templates/iiab_env.py.j2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue