diff --git a/tasks/main.yml b/tasks/main.yml index 7269e68..5389dcd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -52,3 +52,15 @@ persistentvolumeclaims: "{{ pvc_quota }}" validate_certs: "{{ validate_certs }}" token: "{{ ansible_sa_token }}" + +- name: Add Managed Label + oc: + state: present + inline: + kind: Namespace + metadata: + name: "{{ project_name }}" + labels: + ansible_managed: 'true' + validate_certs: "{{ validate_certs }}" + token: "{{ ansible_sa_token }}"