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

Cleaner communications

This commit is contained in:
A Holt 2017-11-09 22:06:57 -05:00 committed by GitHub
parent 183ae07319
commit 17e0896547
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@
#- name: Loading computed_vars
# 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
# set top level variables from local facts for convenience
@ -27,7 +27,7 @@
iiab_stage: '{{ ansible_local.local_facts.stage }}'
# 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:
rpi_model: "rpi"
is_rpi: True
@ -116,12 +116,12 @@
docker_enabled: True
when: schooltool_enabled or schooltool_install
- name: Set python_path for is_redhat
- name: Set python_path (redhat)
set_fact:
python_path: /usr/lib/python2.7/site-packages/
when: is_redhat
- name: Set python_path for is_debuntu
- name: Set python_path (debuntu)
set_fact:
python_path: /usr/local/lib/python2.7/dist-packages/
when: is_debuntu
@ -134,14 +134,14 @@
set_fact:
mysql_service: mariadb
- name: Set mysqld_service to mysqld for Fedora 18
- name: Set mysqld_service to mysqld (etc) for Fedora 18
set_fact:
mysql_service: mysqld
no_NM_reload: True
is_F18: True
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:
mysql_service: mysql
when: is_debuntu
@ -156,7 +156,7 @@
FQDN_changed: True
when: iiab_fqdn != ansible_fqdn
- name: add version section
- name: Add version section
ini_file: dest='{{ iiab_config_file }}'
section=runtime
option='{{ item.option }}'