Fix checkout-treasuremap-ref playbook
Ansible treats the use of jinja2 expressions in the 'when' clause as unsafe. Change-Id: Id0122a6d4a113fbdc3b534fb21e3f3b6ca64e19b Signed-off-by: Sergiy Markin <smarkin@mirantis.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: primary
|
||||||
tasks:
|
tasks:
|
||||||
- name: Checkout treasuremap ref
|
- name: Checkout treasuremap ref
|
||||||
git:
|
git:
|
||||||
@@ -23,4 +23,4 @@
|
|||||||
when:
|
when:
|
||||||
- treasuremap_ref is defined
|
- treasuremap_ref is defined
|
||||||
- treasuremap_ref|length > 0
|
- treasuremap_ref|length > 0
|
||||||
- treasuremap_ref != "{{ zuul.projects['opendev.org/airship/treasuremap'].checkout }}"
|
- treasuremap_ref != "v1.9"
|
||||||
Reference in New Issue
Block a user