mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Do not hardcode python executable in test (#17380)
Based on https://github.com/ansible/ansible/pull/17376
This commit is contained in:
committed by
Matt Clay
parent
4ae59b2743
commit
918d1e038e
@@ -17,7 +17,7 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: generate random string
|
||||
command: python -c "import string,random; print ''.join(random.choice(string.ascii_lowercase) for _ in range(8));"
|
||||
command: '{{ ansible_python.executable }} -c "import string,random; print ''.join(random.choice(string.ascii_lowercase) for _ in range(8));"'
|
||||
register: random_string
|
||||
tags:
|
||||
- prepare
|
||||
|
||||
Reference in New Issue
Block a user