Adding version checking to collection

This commit is contained in:
John Westcott IV
2020-04-17 12:58:17 -04:00
committed by AlanCoding
parent 30610f1a62
commit 762d8a287e
2 changed files with 17 additions and 8 deletions

View File

@@ -8,6 +8,12 @@
collection_version: 0.0.1 # not for updating, pass in extra_vars
tasks:
- name: Set the collection version in the tower_api.py file
replace:
path: "{{ playbook_dir }}/plugins/module_utils/tower_api.py"
regexp: '^ _COLLECTION_VERSION =.*'
replace: ' _COLLECTION_VERSION = "{{ collection_version }}"'
- name: Do file content replacements for non-default namespace or package name
block: