diff options
author | Alan Rominger <arominge@redhat.com> | 2020-05-18 14:51:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 14:51:39 +0200 |
commit | 22cdc129ad79fa413cacdae58d94aec89ea5a364 (patch) | |
tree | 25644946af78d0fc527ff445a6bf19801e037b69 /awx_collection/tools | |
parent | recover line deletes (diff) | |
download | awx-22cdc129ad79fa413cacdae58d94aec89ea5a364.tar.xz awx-22cdc129ad79fa413cacdae58d94aec89ea5a364.zip |
Patches from tinkering with tests and default to devel version (#8)
This causes make install_collection to avoid templating the version
so that it can still be used as-is in development
Diffstat (limited to 'awx_collection/tools')
-rw-r--r-- | awx_collection/tools/roles/template_galaxy/tasks/main.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/awx_collection/tools/roles/template_galaxy/tasks/main.yml b/awx_collection/tools/roles/template_galaxy/tasks/main.yml index 77a835602f..c8d6f0fff3 100644 --- a/awx_collection/tools/roles/template_galaxy/tasks/main.yml +++ b/awx_collection/tools/roles/template_galaxy/tasks/main.yml @@ -2,13 +2,15 @@ - name: Set the collection version in the tower_api.py file replace: path: "{{ collection_path }}/plugins/module_utils/tower_api.py" - regexp: '^ _COLLECTION_VERSION =.*' + regexp: '^ _COLLECTION_VERSION = "devel"' replace: ' _COLLECTION_VERSION = "{{ collection_version }}"' + when: + - "awx_template_version | default(True)" - name: Set the collection type in the tower_api.py file replace: path: "{{ collection_path }}/plugins/module_utils/tower_api.py" - regexp: '^ _COLLECTION_TYPE =.*' + regexp: '^ _COLLECTION_TYPE = "awx"' replace: ' _COLLECTION_TYPE = "{{ collection_namespace }}"' - name: Do file content replacements for non-default namespace or package name |