Host management improvements

This commit is contained in:
2020-07-07 16:19:36 -04:00
parent 67cc6ad8a5
commit 6f0e9788d3
4 changed files with 19 additions and 22 deletions

View File

@@ -1,23 +1,6 @@
---
# Configure a Raspberry Pi running Fedora 32+ for Management functions.
- name: Configure interfaces
hosts: pimgmt
gather_facts: false
connection: local
vars:
network_provider: nm
tasks:
- set_fact:
network_connections: >-
{{ network_connections|default([]) + [{
'name': item.name,
'state': item.enabled |ternary('up','down')
}] }}
loop: "{{ interfaces }}"
- debug:
msg: "Connections = {{ network_connections }}"
# - name: Set Up DHCP System
# hosts: dhcp-server