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

syntax check

This commit is contained in:
Jerry Vonau 2017-11-01 18:50:10 -05:00
parent 4a63f79085
commit 3e4ae6b07d
3 changed files with 17 additions and 3 deletions

View file

@ -11,7 +11,7 @@
- name: Discover if this is a rpi -- assume if so it is running raspbian - name: Discover if this is a rpi -- assume if so it is running raspbian
set_fact: set_fact:
rpi_model: "rpi" rpi_model: "rpi"
is_rpi: "True" is_rpi: True
when: ansible_local.local_facts.os == "raspbian" when: ansible_local.local_facts.os == "raspbian"
- name: Set exFAT enabled for XO laptops - name: Set exFAT enabled for XO laptops
@ -200,9 +200,21 @@
value: '{{ gw_active }}' value: '{{ gw_active }}'
- option: 'internet_available' - option: 'internet_available'
value: '{{ internet_available }}' value: '{{ internet_available }}'
- option: 'is_rpi'
value: '{{ is_rpi }}'
- option: 'first_run' - option: 'first_run'
value: '{{ first_run }}' value: '{{ first_run }}'
- option: 'local_tz' - option: 'local_tz'
value: '{{ local_tz }}' value: '{{ local_tz }}'
- option: 'FQDN_changed' - option: 'FQDN_changed'
value: '{{ FQDN_changed }}' value: '{{ FQDN_changed }}'
- name: add version section
ini_file: dest='{{ iiab_config_file }}'
section=runtime
option='{{ item.option }}'
value='{{ item.value }}'
with_items:
- option: 'is_VM'
value: 'yes'
when: is_VM is defined

View file

@ -52,3 +52,5 @@
value: '{{ dhcp_service2 }}' value: '{{ dhcp_service2 }}'
- option: 'dnsmasq_enabled' - option: 'dnsmasq_enabled'
value: '{{ dnsmasq_enabled }}' value: '{{ dnsmasq_enabled }}'
- option: 'is_rpi'
value: '{{ is_rpi }}'

View file

@ -62,7 +62,7 @@
- name: restart the networking service - name: restart the networking service
service: name=networking state=restarted service: name=networking state=restarted
when: not is_rpi or not no_net_restart is defined when: not is_rpi or not is_VM is defined
- name: restart hostapd when wifi is present - name: restart hostapd when wifi is present
service: name=hostapd state=restarted service: name=hostapd state=restarted