Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. "172.23.130.13",
  2. "172.23.130.34",
  3. "172.23.130.99",
  4. "172.23.130.94"
  5.  
  6. - name: Create Add and Remove Group Batches
  7. gather_facts: false
  8. hosts: all
  9. become: true
  10. no_log: false
  11. serial: 2
  12.  
  13. tasks:
  14. - add_host:
  15. name: "{{ item.1 }}"
  16. ansible_ssh_port: 2020
  17. group: loadbalancer-{{ <<serial counter here>> }}
  18. action: add
  19. with_indexed_items: "{{ play_hosts }}"
  20. delegate_to: localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement