Now using new X-API headers to test version and type

This commit is contained in:
John Westcott IV
2020-04-22 15:25:49 -04:00
committed by AlanCoding
parent 762d8a287e
commit 81eb9bb78a
2 changed files with 27 additions and 10 deletions

View File

@@ -14,6 +14,12 @@
regexp: '^ _COLLECTION_VERSION =.*'
replace: ' _COLLECTION_VERSION = "{{ collection_version }}"'
- name: Set the collection type in the tower_api.py file
replace:
path: "{{ playbook_dir }}/plugins/module_utils/tower_api.py"
regexp: '^ _COLLECTION_TYPE =.*'
replace: ' _COLLECTION_TYPE = "{{ collection_namespace }}"'
- name: Do file content replacements for non-default namespace or package name
block: