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:
David Kirwan 2022-08-16 14:59:41 +01:00
parent 2007abcbd0
commit b1a0394649
2 changed files with 10 additions and 0 deletions

View 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

View file

@ -5,5 +5,6 @@
with_items: "{{ communishift_projects }}"
run_once: true
- include_tasks: create-namespace.yml
- include_tasks: create-efs.yml