mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
29 lines
807 B
YAML
29 lines
807 B
YAML
---
|
|
- name: Prepare
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: Ensure operator image is set
|
|
fail:
|
|
msg: |
|
|
You must specify the OPERATOR_IMAGE environment variable in order to run the
|
|
'default' scenario
|
|
when: not operator_image
|
|
|
|
- name: Set testing image
|
|
command: '{{ kustomize }} edit set image testing={{ operator_image }}'
|
|
args:
|
|
chdir: '{{ config_dir }}/testing'
|
|
|
|
- name: Set pull policy
|
|
command: '{{ kustomize }} edit add patch --path pull_policy/{{ operator_pull_policy }}.yaml'
|
|
args:
|
|
chdir: '{{ config_dir }}/testing'
|
|
|
|
- name: Set testing namespace
|
|
command: '{{ kustomize }} edit set namespace {{ namespace }}'
|
|
args:
|
|
chdir: '{{ config_dir }}/testing'
|