mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user