[WARNING]: Could not match supplied host pattern, ignoring: matrix_servers

Error while trying to run playbook

If you get the above error when you try running

ansible-playbook -i inventory/hosts setup.yml --tags=setup-system-user

Check and verify that you have [matrix_servers] in your inventory/hosts file

That file should contain the following.

[matrix_servers]
matrix. ansible_host= ansible_ssh_user=root

Add local DNS entry in Windows

Windows has a similar file like the Linux /etc/hosts file.  It is located in

Windows\System32\drivers\etc\hosts

You’ll need to have administrator privileges to modify the file.  So you can launch notepad as Administrator then open the file.  If you don’t see the file make sure the drop down across from “File name:” is set to “All Files”.

You can add entry’s just like you would on Linux

192.168.22.12   hostname