communishift: Added tasks for creating project namespaces
Signed-off-by: David Kirwan <dkirwan@redhat.com> Signed-off-by: Lenka Segura <lsegura@redhat.com> Signed-off-by: Patrik Polakovic <ppolakov@redhat.com>
This commit is contained in:
parent
2007abcbd0
commit
b1a0394649
2 changed files with 10 additions and 0 deletions
9
roles/communishift/tasks/create-namespace.yml
Normal file
9
roles/communishift/tasks/create-namespace.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Create a k8s namespace
|
||||
community.okd.k8s:
|
||||
api_key: "{{ communishift_ocp_api_token }}"
|
||||
host: "{{ communishift_ocp_api_host }}"
|
||||
name: "{{ communishift_project_name }}"
|
||||
api_version: v1
|
||||
kind: Namespace
|
||||
state: present
|
|
@ -5,5 +5,6 @@
|
|||
with_items: "{{ communishift_projects }}"
|
||||
run_once: true
|
||||
|
||||
- include_tasks: create-namespace.yml
|
||||
- include_tasks: create-efs.yml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue