This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix delegate_facts with interpreter not being set (ansible#70293)
Fixes ansible#70168 ci_complete Co-authored-by: Brian Coca <[email protected]> Co-authored-by: Matt Clay <[email protected]>
- Loading branch information
Showing
7 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
changelogs/fragments/70168-fix-delegate_facts-without-interpreter-set.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,2 @@ | ||
bugfixes: | ||
- "Fix ``delegate_facts: true`` when ``ansible_python_interpreter`` is not set. (https://github.com/ansible/ansible/issues/70168)" |
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
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 |
10 changes: 10 additions & 0 deletions
10
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,10 @@ | ||
- hosts: localhost | ||
gather_facts: no | ||
tasks: | ||
- name: Test python interpreter discovery with delegate_to without delegate_facts | ||
ping: | ||
delegate_to: testhost | ||
- name: Test python interpreter discovery with delegate_to 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 "$@" |
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