1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

redhat debugging and remove dup'd stanzas

This commit is contained in:
Jerry Vonau 2017-09-24 15:09:43 -05:00
parent 8bb6166914
commit 5cd426fa89
2 changed files with 24 additions and 5 deletions

View file

@ -30,6 +30,25 @@
include: detected_redhat.yml
when: is_redhat
- name: check to see if dhcpcd is installed and active - Can Fail
shell: systemctl is-enabled dhcpcd
register: dhcpcd_test
ignore_errors: True
- name: setting dhcpcd_test results
set_fact:
dhcpcd_result: "{{ dhcpcd_test.stdout }}"
- name: check /etc/network/interfaces for gateway
shell: grep {{ device_gw }} /etc/network/interfaces | wc -l
when: is_debuntu
register: wan_file
- name: setting wan_in_interfaces
set_fact:
wan_in_interfaces: True
when: is_debuntu and wan_file.stdout|int >= "0"
# WIRELESS -- if any wireless is detected as gateway, it becomes WAN
- name: Look for any wireless interfaces
shell: "cat /proc/net/wireless | grep -v -e Inter -e face | awk -F: '{print $1}' "

View file

@ -74,11 +74,11 @@
#### start network layout
# setting installing would skip configuring network
# but would configure but not start services
- include: computed_network.yml
when: not installing
tags:
- network
- network-discover
#- include: computed_network.yml
# when: not installing
# tags:
# - network
# - network-discover
- include: computed_services.yml
tags: