forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for interpreter discovery + delegate_facts
Reproduces the traceback reported in ansible#70168
- Loading branch information
Showing
4 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
test/integration/targets/interpreter_discovery_python_delegate_facts/aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shippable/posix/group1 | ||
non_local # this test requires interpreter discovery, which means code coverage must be disabled |
7 changes: 7 additions & 0 deletions
7
test/integration/targets/interpreter_discovery_python_delegate_facts/delegate_facts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- hosts: localhost | ||
gather_facts: no | ||
tasks: | ||
- name: Test python interpreter discovery with delegate_facts | ||
ping: | ||
delegate_to: testhost | ||
delegate_facts: yes |
2 changes: 2 additions & 0 deletions
2
test/integration/targets/interpreter_discovery_python_delegate_facts/inventory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[local] | ||
testhost ansible_connection=local ansible_python_interpreter=auto # interpreter discovery required |
5 changes: 5 additions & 0 deletions
5
test/integration/targets/interpreter_discovery_python_delegate_facts/runme.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
ansible-playbook delegate_facts.yml -i inventory "$@" |