Closed purencool closed 4 years ago
@purencool I had this same error, the issue was that the characters in my MAC addresses were uppercase (copy/pasted from my router). Ansible is expecting lowercase. If you look at the error message it shows the MAC as lowercase, which is the clue for what the problem is
@amajot, yes that was the issue, the MAC addresses needed to be lowercase in this circumstance. Thanks for the information.
Thanks for posting the fix!
Hi,
Great work firstly, I don't know is this a bug or I am not following your howto properly(which is more likely). So I have created this ticket to see which one it is. I have Two PI's 4, 2gig with a Debian installation.
Testing your configuration it works fine:
Then I navigate to the following directory
raspberry-pi-dramble/setup/networking
and set up my variables in
vars.yml
My inventory file looks like this
When I try the following command
ansible-playbook -i inventory main.yml
. I get the following outputThis is line 13
- name: Set variables based on eth0 MAC address.
This is the main.yml
My question is: I am not sure what it is that creating the error are you able to see what it is?