mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-07-27 09:01:40 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user