mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
e81d4a6c8b
commit
449fd3fafd
1 changed files with 10 additions and 10 deletions
|
@ -10,8 +10,8 @@
|
||||||
first_run: True
|
first_run: True
|
||||||
when: not NewInstall.stat.exists
|
when: not NewInstall.stat.exists
|
||||||
|
|
||||||
# We need to inialize the ini file and only write the location and version sections once and only
|
# We need to inialize the ini file and only write the location and version
|
||||||
# once to preserve the install date and git hash.
|
# sections once and only once to preserve the install date and git hash.
|
||||||
- name: Write iiab_ini.yml for the first time
|
- name: Write iiab_ini.yml for the first time
|
||||||
include_tasks: first_run.yml
|
include_tasks: first_run.yml
|
||||||
when: first_run
|
when: first_run
|
||||||
|
@ -41,7 +41,8 @@
|
||||||
exFAT_enabled: True
|
exFAT_enabled: True
|
||||||
when: xo_model != "none"
|
when: xo_model != "none"
|
||||||
|
|
||||||
# Discover do we have a gateway? -- if ansible detects gateway, becomes WAN candidate
|
# Discover: do we have a gateway?
|
||||||
|
# If Ansible detects gateway, becomes WAN candidate.
|
||||||
- name: Finding gateway
|
- name: Finding gateway
|
||||||
set_fact:
|
set_fact:
|
||||||
discovered_wan_iface: "{{ ansible_default_ipv4.alias }}"
|
discovered_wan_iface: "{{ ansible_default_ipv4.alias }}"
|
||||||
|
@ -79,7 +80,7 @@
|
||||||
path: /tmp/heart-beat.txt
|
path: /tmp/heart-beat.txt
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# Put all computed vars here so derive properly from any prior var file
|
# Put all computed vars here so derive properly from any prior var file.
|
||||||
- name: If the TZ is not set in env, set it to UTC
|
- name: If the TZ is not set in env, set it to UTC
|
||||||
include_tasks: tz.yml
|
include_tasks: tz.yml
|
||||||
|
|
||||||
|
@ -98,10 +99,10 @@
|
||||||
mysql_install: True
|
mysql_install: True
|
||||||
mysql_enabled: True
|
mysql_enabled: True
|
||||||
|
|
||||||
# we decided to enable mysql unconditionally
|
# We decided to enable mysql unconditionally.
|
||||||
# when: elgg_enabled or rachel_enabled or owncloud_enabled or phpmyadmin_enabled or wordpress_enabled or iiab_menu_install
|
# when: elgg_enabled or rachel_enabled or owncloud_enabled or phpmyadmin_enabled or wordpress_enabled or iiab_menu_install
|
||||||
|
|
||||||
# Commenting out MongoDB on a trial basis, for a more basic/lightweight Sugarizer, per https://github.com/iiab/iiab/pull/427
|
# Late 2017: Had commented out MongoDB on a trial basis, for a more basic/lightweight Sugarizer, per https://github.com/iiab/iiab/pull/427
|
||||||
- name: Turn on mongodb if sugarizer enabled
|
- name: Turn on mongodb if sugarizer enabled
|
||||||
set_fact:
|
set_fact:
|
||||||
mongodb_install: True
|
mongodb_install: True
|
||||||
|
@ -131,9 +132,8 @@
|
||||||
python_path: /usr/local/lib/python2.7/dist-packages/
|
python_path: /usr/local/lib/python2.7/dist-packages/
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
# For various reasons the mysql service can not be enabled on fedora 20,
|
# For various reasons the mysql service cannot be enabled on Fedora 20, but
|
||||||
# but 'mariadb', which is its real name can.
|
# 'mariadb', which is its real name can. On Fedora 18 we need to use 'mysqld'.
|
||||||
# On Fedora 18 we need to use 'mysqld'
|
|
||||||
|
|
||||||
- name: Set mysql_service to mariadb by default
|
- name: Set mysql_service to mariadb by default
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
include_tasks: hostname.yml
|
include_tasks: hostname.yml
|
||||||
when: FQDN_changed
|
when: FQDN_changed
|
||||||
|
|
||||||
- name: Add 'runtime' to list of services at /etc/iiab/iiab.ini
|
- name: Add 'runtime' section alongside list of services at /etc/iiab/iiab.ini
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "{{ iiab_config_file }}"
|
dest: "{{ iiab_config_file }}"
|
||||||
section: runtime
|
section: runtime
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue