mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 23:51:23 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
1
tests/integration/targets/callback_log_plays/aliases
Normal file
1
tests/integration/targets/callback_log_plays/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
shippable/posix/group3
|
|
@ -0,0 +1,4 @@
|
|||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- ping:
|
16
tests/integration/targets/callback_log_plays/runme.sh
Executable file
16
tests/integration/targets/callback_log_plays/runme.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
export ANSIBLE_CALLBACK_WHITELIST="log_plays,${ANSIBLE_CALLBACK_WHITELIST:-}"
|
||||
|
||||
# run play, should create log and dir if needed
|
||||
export ANSIBLE_LOG_FOLDER="logit"
|
||||
ansible-playbook ping_log.yml -v "$@"
|
||||
[[ -f "${ANSIBLE_LOG_FOLDER}/localhost" ]]
|
||||
|
||||
# now force it to fail
|
||||
export ANSIBLE_LOG_FOLDER="logit.file"
|
||||
touch "${ANSIBLE_LOG_FOLDER}"
|
||||
ansible-playbook ping_log.yml -v "$@" 2>&1| grep 'Failure using method (v2_runner_on_ok) in callback plugin'
|
||||
[[ ! -f "${ANSIBLE_LOG_FOLDER}/localhost" ]]
|
Loading…
Add table
Add a link
Reference in a new issue