[openshift/project] Fix the parameter order for oc apply

The file needs to be specified after `-f` parameter otherwise it fails with
unexpected args error.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-11-23 16:38:37 +01:00
parent c9d01c484f
commit c5e61168bb

View file

@ -19,7 +19,7 @@
dest=/etc/openshift_apps/{{app}}/project.yml
- name: Create project
shell: oc apply -f --validate=strict /etc/openshift_apps/{{app}}/project.yml
shell: oc apply --validate=strict -f /etc/openshift_apps/{{app}}/project.yml
when: "'not found' in project_exists.stderr"
- name: deployer.yml