proxy_ping_test
This commit is contained in:
@@ -101,10 +101,10 @@
|
||||
that:
|
||||
- "'{{ansible_lsb.id}}' == '{{BOX_OS_NAME}}'"
|
||||
success_msg: "BOX_OS_FAMILY={{BOX_OS_FAMILY}}"
|
||||
fail_msg: "ON tHE WRONG BOX {{ansible_lsb.id}} "
|
||||
fail_msg: "ON tHE WRONG BOX {{ansible_lsb.id}}"
|
||||
when:
|
||||
- ansible_connection != 'local'
|
||||
- ansible_lsb.id|default('')" != ''
|
||||
# - ansible_connection != 'local'
|
||||
- ansible_lsb.id|default('') != ''
|
||||
ignore_errors: true
|
||||
|
||||
- name: "check BOX_ANSIBLE_CONNECTIONS"
|
||||
@@ -148,39 +148,8 @@
|
||||
check_mode: false
|
||||
when: ansible_connection == 'local' or ansible_connection == 'chroot'
|
||||
|
||||
- block:
|
||||
|
||||
- name: "spinup libvirt hosts"
|
||||
shell: |
|
||||
sudo virsh net-list | grep -q default || \
|
||||
sudo virsh net-start default
|
||||
sudo virsh list | grep -q "{{ inventory_hostname }}" || \
|
||||
sudo virsh start "{{ inventory_hostname }}"
|
||||
delegate_to: localhost
|
||||
become: yes
|
||||
|
||||
- name: "spinup libvirt hosts"
|
||||
# pip3.sh install ovirt-engine-sdk-python --break-system-packages
|
||||
ovirt:
|
||||
url: "qemu:///system"
|
||||
instance_name: ubuntu18.04
|
||||
instance_cpus: "1"
|
||||
state: started
|
||||
# instance_rootpw
|
||||
user: "{{ BOX_USER_NAME }}" #
|
||||
password: "{{ BOX_USER_NAME }}" # "{{ ansible_ssh_user }}
|
||||
become: yes
|
||||
# msg: ovirtsdk required for this module
|
||||
ignore_errors: true
|
||||
|
||||
# required
|
||||
tags: always
|
||||
check_mode: false
|
||||
when: ansible_connection == 'libvirt_qemu'
|
||||
|
||||
- block:
|
||||
|
||||
# after spinup
|
||||
- name: "we will use sudo and make it a prerequisite"
|
||||
shell: |
|
||||
[ -z "$TMPDIR" ] || [ -d "$TMPDIR" ] || mkdir -p "$TMPDIR"
|
||||
|
||||
Reference in New Issue
Block a user