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:
parent
8bb6166914
commit
5cd426fa89
2 changed files with 24 additions and 5 deletions
|
@ -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}' "
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue