Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "172.23.130.13",
- "172.23.130.34",
- "172.23.130.99",
- "172.23.130.94"
- - name: Create Add and Remove Group Batches
- gather_facts: false
- hosts: all
- become: true
- no_log: false
- serial: 2
- tasks:
- - add_host:
- name: "{{ item.1 }}"
- ansible_ssh_port: 2020
- group: loadbalancer-{{ <<serial counter here>> }}
- action: add
- with_indexed_items: "{{ play_hosts }}"
- delegate_to: localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement