Change regex to match what is in source

This commit is contained in:
Alan Rominger 2020-08-11 10:04:14 -04:00
parent 52bb71b63e
commit 2a0c61de63
No known key found for this signature in database
GPG Key ID: D0E673F5E7053218

View File

@ -2,7 +2,7 @@
- name: Set the collection version in the tower_api.py file
replace:
path: "{{ collection_path }}/plugins/module_utils/tower_api.py"
regexp: '^ _COLLECTION_VERSION = "devel"'
regexp: '^ _COLLECTION_VERSION = "0.0.1-devel"'
replace: ' _COLLECTION_VERSION = "{{ collection_version }}"'
when:
- "awx_template_version | default(True)"