mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
move dhcpcd detection to local_facts to clean up logging
This commit is contained in:
parent
f04c8894cc
commit
95409fdfff
2 changed files with 4 additions and 8 deletions
|
|
@ -19,14 +19,9 @@
|
|||
include_tasks: 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 }}"
|
||||
dhcpcd_result: '{{ ansible_local.local_facts.dhcpcd }}'
|
||||
|
||||
- name: Check /etc/network/interfaces for gateway
|
||||
shell: grep {{ device_gw }} /etc/network/interfaces | wc -l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue