riteshchikatwar

Untitled

Dec 5th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. - name: Get hosts
  2. ovirt_host_info:
  3. auth: "{{ ovirt_auth }}"
  4. pattern: "cluster={{ cluster_name | mandatory }} {{ check_upgrade | ternary('', 'update_available=true') }} {{ host_names | map('regex_replace', '^(.*)$', 'name=\\1') | list | join(' or ') }} {{ host_statuses | map('regex_replace', '^(.*)$', 'status=\\1') | list | join(' or ') }}"
  5. check_mode: "no"
  6. register: host_info
Advertisement
Add Comment
Please, Sign In to add comment