Hi, 
In my inventory file i have 3 server, I need to set the hostname including 
prefix1-3

web1
web2
web3

*Inventory fie:*

[web]
192.168.0.47
192.168.0.48
192.168.0.49

*Playbook*

- hosts:
    - web
  become: true
  any_errors_fatal: true
  tasks:


    - name: update hostname
      hostname:
        name : "web ????"





-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2dd18239-c65d-4717-9d90-af4c2aba1a68n%40googlegroups.com.

Reply via email to