Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: localhost
- gather_facts: no
- any_errors_fatal: true
- pre_tasks:
- - name: Check per AVZ
- shell: <command>
- register: nodes_list_avz_a
- post_tasks:
- - name: Set fact variable
- set_fact:
- nodes_list_avz_a: "{{ nodes_list_avz_a.stdout_lines }}"
- - name: debug
- debug:
- msg: "{{ nodes_list_avz_a }}"
- - hosts: masters[0]
- gather_facts: no
- any_errors_fatal: true
- pre_tasks:
- - name: echoooo Cordon and evacuate nodes
- shell: echo "{{ item }}"
- with_items:
- - "{{ nodes_list_avz_a }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement