diff --git a/roles/0-init/tasks/main.yml b/roles/0-init/tasks/main.yml index 10705e6cd..3bb8defd2 100644 --- a/roles/0-init/tasks/main.yml +++ b/roles/0-init/tasks/main.yml @@ -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 }}'