mirror of https://github.com/ansible/ansible.git
Fix async interpreter parsing (#72636)
* Fix async interpreter parsing. Fixes #70690 * Target localhost instead of remote host * Don't forget inventory * Address shellcheck issuepull/72933/head
parent
1b70260d5a
commit
83764ad506
@ -0,0 +1,3 @@
|
|||||||
|
bugfixes:
|
||||||
|
- async - Fix Python 3 interpreter parsing from module by comparing with bytes
|
||||||
|
(https://github.com/ansible/ansible/issues/70690)
|
@ -0,0 +1,3 @@
|
|||||||
|
shippable/posix/group2
|
||||||
|
skip/docker
|
||||||
|
skip/macos
|
@ -0,0 +1 @@
|
|||||||
|
not_empty # avoid empty empty hosts list warning without defining explicit localhost
|
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
trap 'umount "${OUTPUT_DIR}/ramdisk"' EXIT
|
||||||
|
|
||||||
|
mkdir "${OUTPUT_DIR}/ramdisk"
|
||||||
|
mount -t tmpfs -o size=32m,noexec,rw tmpfs "${OUTPUT_DIR}/ramdisk"
|
||||||
|
ANSIBLE_REMOTE_TMP="${OUTPUT_DIR}/ramdisk" ansible-playbook -i inventory "$@" test-noexec.yml
|
@ -0,0 +1,8 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- ping:
|
||||||
|
|
||||||
|
- command: sleep 1
|
||||||
|
async: 2
|
||||||
|
poll: 1
|
Loading…
Reference in New Issue