mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 12:12:12 +00:00
keep is_rpi in ini, add first_run recording
This commit is contained in:
parent
4e57383379
commit
21ff35c294
2 changed files with 10 additions and 8 deletions
|
@ -37,3 +37,5 @@
|
|||
value: "{{ ansible_date_time.iso8601 }}"
|
||||
- option: install_xo
|
||||
value: "{{ xo_model }}"
|
||||
- option: is_rpi
|
||||
value: "{{ rpi_model }}"
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
first_run: True
|
||||
when: not NewInstall.stat.exists
|
||||
|
||||
- name: Set top-level variables from local_facts for convenience
|
||||
set_fact:
|
||||
rpi_model: "{{ ansible_local.local_facts.rpi_model }}"
|
||||
xo_model: "{{ ansible_local.local_facts.xo_model }}"
|
||||
phplib_dir: "{{ ansible_local.local_facts.phplib_dir }}"
|
||||
iiab_stage: "{{ ansible_local.local_facts.stage }}"
|
||||
|
||||
# We need to inialize the ini file and only write the location and version
|
||||
# sections once and only once to preserve the install date and git hash.
|
||||
- name: Create IIAB tools and {{ iiab_ini_file }}, if first_run
|
||||
|
@ -55,13 +62,6 @@
|
|||
# fail_msg: "PLEASE CONFIRM 'apache_install: True' AND 'apache_enable: True' IF 'nginx_enabled: False' e.g. IN: /etc/iiab/local_vars.yml"
|
||||
# quiet: yes
|
||||
|
||||
- name: Set top-level variables from local_facts for convenience
|
||||
set_fact:
|
||||
rpi_model: "{{ ansible_local.local_facts.rpi_model }}"
|
||||
xo_model: "{{ ansible_local.local_facts.xo_model }}"
|
||||
phplib_dir: "{{ ansible_local.local_facts.phplib_dir }}"
|
||||
iiab_stage: "{{ ansible_local.local_facts.stage }}"
|
||||
|
||||
- name: Set exFAT_enabled if xo_model != "none"
|
||||
set_fact:
|
||||
exFAT_enabled: True
|
||||
|
@ -209,7 +209,7 @@
|
|||
value: "{{ gw_active }}"
|
||||
- option: internet_available
|
||||
value: "{{ internet_available }}"
|
||||
- option: rpi_model
|
||||
- option: is_rpi
|
||||
value: "{{ rpi_model }}"
|
||||
- option: first_run
|
||||
value: "{{ first_run }}"
|
||||
|
|
Loading…
Reference in a new issue