Skip to content

Commit

Permalink
Test for interpreter discovery + delegate_facts
Browse files Browse the repository at this point in the history
Reproduces the traceback reported in ansible#70168
  • Loading branch information
mattclay committed Jun 25, 2020
1 parent 45e0f74 commit acd5dcd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
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
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
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
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 "$@"

0 comments on commit acd5dcd

Please sign in to comment.