update
This commit is contained in:
@@ -112,12 +112,6 @@
|
||||
that:
|
||||
- "{{ansible_connection in BOX_ANSIBLE_CONNECTIONS}}"
|
||||
|
||||
- name: "we will use sudo and make it a prerequisite"
|
||||
shell: |
|
||||
which sudo || exit 1
|
||||
# "check ansible_python_interpreter"
|
||||
"{{ansible_python_interpreter|default('python3')}}" --version
|
||||
|
||||
# required
|
||||
tags: always
|
||||
check_mode: false
|
||||
@@ -184,6 +178,20 @@
|
||||
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"
|
||||
which sudo || exit 1
|
||||
# "check ansible_python_interpreter"
|
||||
"{{ansible_python_interpreter|default('python3')}}" --version
|
||||
|
||||
# required
|
||||
tags: always
|
||||
check_mode: false
|
||||
|
||||
# # required?
|
||||
# tags: always
|
||||
# check_mode: false
|
||||
@@ -202,10 +210,10 @@
|
||||
when:
|
||||
- "'proxy' in ROLES"
|
||||
|
||||
- role: ansible-gentoo_install
|
||||
when:
|
||||
# BOX_OS_FAMILY == 'Gentoo' or BOX_GENTOO_FROM_MP != '' ?
|
||||
- ( ansible_connection == 'local' and nbd_disk|default('') != '' ) or (ansible_connection == 'chroot' )
|
||||
# - role: ansible-gentoo_install
|
||||
# when:
|
||||
# # BOX_OS_FAMILY == 'Gentoo' or BOX_GENTOO_FROM_MP != '' ?
|
||||
# - ( ansible_connection == 'local' and nbd_disk|default('') != '' ) or (ansible_connection == 'chroot' )
|
||||
|
||||
- role: toxcore
|
||||
tags: always
|
||||
|
||||
Reference in New Issue
Block a user