Project

Profile

Help

Task #2865

Move Ansible version check back into a pretask

Added by amacdona@redhat.com over 2 years ago. Updated 6 months ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Dev Environment
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

The code that checks for Ansible version is here:
https://github.com/pulp/devel/blob/3.0-dev/ansible/roles/common/tasks/main.yml#L1

Unfortunately, it will have already failed with syntax errors before that code can run. This should be run as a pre-task in the playbook. Bonus points if the same pretask can be used by multiple playbooks.

History

#1 Updated by amacdona@redhat.com over 2 years ago

When this works, we will be enforicing Ansible >= 2.2. We should either bump to 2.3 or change this line:
https://github.com/pulp/devel/blob/3.0-dev/ansible/roles/common/tasks/main.yml#L36

`path` is new in 2.3. `dest` is backwards compatible.

#2 Updated by amacdona@redhat.com 11 months ago

  • Status changed from NEW to CLOSED - WONTFIX

pulp/devel ansible roles are deprecated in favor of ansible-pulp3. In that repo, min_ansible_version is set in the meta of each role.

#3 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#4 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF