|
|
@ -7,14 +7,14 @@ |
|
|
|
# Basic hostname setup |
|
|
|
# Basic hostname setup |
|
|
|
- name: Get MAC address |
|
|
|
- name: Get MAC address |
|
|
|
debug: |
|
|
|
debug: |
|
|
|
msg: "{{ hostvars[inventory_hostname].ansible_default_ipv4.macaddress }}" |
|
|
|
msg: "{{ hostvars[inventory_hostname].ansible_eth0.macaddress }}" |
|
|
|
tags: |
|
|
|
tags: |
|
|
|
- raspi |
|
|
|
- raspi |
|
|
|
- sw |
|
|
|
- sw |
|
|
|
|
|
|
|
|
|
|
|
- name: store MAC address |
|
|
|
- name: store MAC address |
|
|
|
set_fact: |
|
|
|
set_fact: |
|
|
|
my_macaddr: "{{ hostvars[inventory_hostname].ansible_default_ipv4.macaddress }}" |
|
|
|
my_macaddr: "{{ hostvars[inventory_hostname].ansible_eth0.macaddress }}" |
|
|
|
tags: |
|
|
|
tags: |
|
|
|
- raspi |
|
|
|
- raspi |
|
|
|
- sw |
|
|
|
- sw |
|
|
|