I use ansible to send update command in my devices.
To complete this task I might specific serial number.
I would set or ansible_host in my template.yml or set serial_number in my ansible_host in host file.
I can’t find the correct syntax to specific this, can someone give me help?
best regards.
----tempalete.yml
- hosts: devices
collections:
serial: xyz
ansible_host: host1
---- host file
[devices]
host1 ansible-host=x.y.z.k