ansible/interfaces.yml

13 lines
305 B
YAML
Executable File

#!/usr/bin/env ansible-playbook
---
# Set variable adm_iface for all servers
- hosts: server
tasks:
- shell: grep adm /sys/class/net/*/ifalias | sed "s|/sys/class/net/||" | sed "s|/ifalias:.*||"
register: adm_iface
check_mode: no
- hosts: boeing.adm.crans.org
roles:
- interfaces