SHARE
TWEET

Untitled

a guest Jul 16th, 2019 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 }}"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top