Like this?
- name: Detect VLAN ID
shell: ip -d link show {{ he_bridge_if }} | grep 'vlan ' | grep -Po 'id
\K[\d]+' | cat
environment: "{{ he_cmd_lang }}"
register: vlan_id_out
changed_when: true
- debug: var=vlan_id_out
- name: Set Engine public key as authorized key without validating the TLS/SSL
certificates
authorized_key:
user: root
state: present
key: https://{{ he_fqdn
}}/ovirt-engine/services/pki-resource?resource=engine-certificate&format=OPENSSH-PUBKEY
validate_certs: false
register: output
failed_when: never
- include_tasks: auth_sso.yml
- name: DEBUG
debug:
var: 'output'
- name: Ensure that the target datacenter is present
ovirt_datacenter:
state: present