mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Cleaner communications
This commit is contained in:
parent
183ae07319
commit
17e0896547
1 changed files with 7 additions and 7 deletions
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#- name: Loading computed_vars
|
#- name: Loading computed_vars
|
||||||
# include_tasks: roles/0-init/tasks/computed_vars.yml
|
# include_tasks: roles/0-init/tasks/computed_vars.yml
|
||||||
- name: re-read local_facts.facts from /etc/ansible/facts.d
|
- name: Re-read local_facts.facts from /etc/ansible/facts.d
|
||||||
setup: filter=ansible_local
|
setup: filter=ansible_local
|
||||||
|
|
||||||
# set top level variables from local facts for convenience
|
# set top level variables from local facts for convenience
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
iiab_stage: '{{ ansible_local.local_facts.stage }}'
|
iiab_stage: '{{ ansible_local.local_facts.stage }}'
|
||||||
|
|
||||||
# Networking uses a different file for the rpi
|
# Networking uses a different file for the rpi
|
||||||
- name: Discover if this is a rpi -- assume if so it is running raspbian
|
- name: Discover if this is a RPi -- if so assume it is running Raspbian
|
||||||
set_fact:
|
set_fact:
|
||||||
rpi_model: "rpi"
|
rpi_model: "rpi"
|
||||||
is_rpi: True
|
is_rpi: True
|
||||||
|
@ -116,12 +116,12 @@
|
||||||
docker_enabled: True
|
docker_enabled: True
|
||||||
when: schooltool_enabled or schooltool_install
|
when: schooltool_enabled or schooltool_install
|
||||||
|
|
||||||
- name: Set python_path for is_redhat
|
- name: Set python_path (redhat)
|
||||||
set_fact:
|
set_fact:
|
||||||
python_path: /usr/lib/python2.7/site-packages/
|
python_path: /usr/lib/python2.7/site-packages/
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
|
|
||||||
- name: Set python_path for is_debuntu
|
- name: Set python_path (debuntu)
|
||||||
set_fact:
|
set_fact:
|
||||||
python_path: /usr/local/lib/python2.7/dist-packages/
|
python_path: /usr/local/lib/python2.7/dist-packages/
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
@ -134,14 +134,14 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
mysql_service: mariadb
|
mysql_service: mariadb
|
||||||
|
|
||||||
- name: Set mysqld_service to mysqld for Fedora 18
|
- name: Set mysqld_service to mysqld (etc) for Fedora 18
|
||||||
set_fact:
|
set_fact:
|
||||||
mysql_service: mysqld
|
mysql_service: mysqld
|
||||||
no_NM_reload: True
|
no_NM_reload: True
|
||||||
is_F18: True
|
is_F18: True
|
||||||
when: ansible_distribution_release == "based on Fedora 18" or ansible_distribution_version == "18"
|
when: ansible_distribution_release == "based on Fedora 18" or ansible_distribution_version == "18"
|
||||||
|
|
||||||
- name: Set mysql_service to mysql for Debian
|
- name: Set mysql_service to mysql (debuntu)
|
||||||
set_fact:
|
set_fact:
|
||||||
mysql_service: mysql
|
mysql_service: mysql
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
FQDN_changed: True
|
FQDN_changed: True
|
||||||
when: iiab_fqdn != ansible_fqdn
|
when: iiab_fqdn != ansible_fqdn
|
||||||
|
|
||||||
- name: add version section
|
- name: Add version section
|
||||||
ini_file: dest='{{ iiab_config_file }}'
|
ini_file: dest='{{ iiab_config_file }}'
|
||||||
section=runtime
|
section=runtime
|
||||||
option='{{ item.option }}'
|
option='{{ item.option }}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue