Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. - hosts: localhost
  2. gather_facts: no
  3. any_errors_fatal: true
  4. pre_tasks:
  5. - name: Check per AVZ
  6. shell: <command>
  7. register: nodes_list_avz_a
  8. post_tasks:
  9. - name: Set fact variable
  10. set_fact:
  11. nodes_list_avz_a: "{{ nodes_list_avz_a.stdout_lines }}"
  12. - name: debug
  13. debug:
  14. msg: "{{ nodes_list_avz_a }}"
  15.  
  16. - hosts: masters[0]
  17. gather_facts: no
  18. any_errors_fatal: true
  19. pre_tasks:
  20. - name: echoooo Cordon and evacuate nodes
  21. shell: echo "{{ item }}"
  22. with_items:
  23. - "{{ nodes_list_avz_a }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement