You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
952 B
YAML
35 lines
952 B
YAML
# issue #109: ensure that any 'ansible' module or package on the remote machine
|
|
# does not conflict with operation.
|
|
|
|
- name: regression/issue_109__target_has_old_ansible_installed.yml
|
|
hosts: test-targets
|
|
gather_facts: true
|
|
tasks:
|
|
- meta: end_play
|
|
when:
|
|
- ansible_version.full is version('2.6', '<', strict=True)
|
|
|
|
- name: Copy the naughty ansible into place
|
|
copy:
|
|
dest: "{{ansible_user_dir}}/ansible.py"
|
|
src: ansible.py
|
|
|
|
# Restart the connection.
|
|
- meta: reset_connection
|
|
|
|
- custom_python_detect_environment:
|
|
register: env
|
|
|
|
- name: Verify interpreter config would actually trigger the bug
|
|
assert:
|
|
that:
|
|
- env.cwd == ansible_user_dir
|
|
- (not env.mitogen_loaded) or (env.python_path.count("") == 1)
|
|
fail_msg: env={{env}}
|
|
|
|
- name: Run some new-style from ansible.module_utils... modules
|
|
stat:
|
|
path: /
|
|
tags:
|
|
- issue_109
|