blob: 39546969526cb93b45c9f16144f773623a6eee4d [file] [log] [blame]
Zack Williamsba5549c2017-03-25 15:04:45 -07001---
2# interface-config/tasks/main.yml
3
4- name: Create network interface for management network
5 template:
6 src: eth.cfg.j2
7 dest: "/etc/network/interfaces.d/{{ mgmt_interface }}.cfg"
8 owner: root
9 group: root
10 mode: 0644
11 register: mgmtint_config
12
13- name: Bring up management network if reconfigured
14 when: mgmtint_config.changed
15 command: "ifup {{ mgmt_interface }}"
16 tags:
17 - skip_ansible_lint # needs to be run before next steps
18