mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
redhat debugging and remove dup'd stanzas
This commit is contained in:
parent
8bb6166914
commit
5cd426fa89
2 changed files with 24 additions and 5 deletions
|
@ -30,6 +30,25 @@
|
||||||
include: detected_redhat.yml
|
include: detected_redhat.yml
|
||||||
when: is_redhat
|
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
|
# WIRELESS -- if any wireless is detected as gateway, it becomes WAN
|
||||||
- name: Look for any wireless interfaces
|
- name: Look for any wireless interfaces
|
||||||
shell: "cat /proc/net/wireless | grep -v -e Inter -e face | awk -F: '{print $1}' "
|
shell: "cat /proc/net/wireless | grep -v -e Inter -e face | awk -F: '{print $1}' "
|
||||||
|
|
|
@ -74,11 +74,11 @@
|
||||||
#### start network layout
|
#### start network layout
|
||||||
# setting installing would skip configuring network
|
# setting installing would skip configuring network
|
||||||
# but would configure but not start services
|
# but would configure but not start services
|
||||||
- include: computed_network.yml
|
#- include: computed_network.yml
|
||||||
when: not installing
|
# when: not installing
|
||||||
tags:
|
# tags:
|
||||||
- network
|
# - network
|
||||||
- network-discover
|
# - network-discover
|
||||||
|
|
||||||
- include: computed_services.yml
|
- include: computed_services.yml
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue