-
hosts: all remote_user: root
tasks:
- name: add hosts lineinfile: name=/etc/hosts line=“192.168.59.103 www.test3.com”
|
|
ansible-playbook hosts.tml -i inventory/mycluster/inventory.ini
|
|
hosts: all remote_user: root
tasks:
|
|
ansible-playbook hosts.tml -i inventory/mycluster/inventory.ini
|
|