Skip to content

Commit

Permalink
add kubeadmin removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Oct 7, 2023
1 parent 3ce89b3 commit a5658c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 30_create_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@
- name: Try to login with admin
ansible.builtin.command: /usr/bin/oc login --insecure-skip-tls-verify -u {{ cluster.ocp_user }} -p {{ cluster.ocp_pass }} https://api.{{ hostvars['bastion'].ocp_domain }}:6443
retries: 10

- name: Remove kubeadmin user
ansible.builtin.shell: /usr/bin/oc delete secrets kubeadmin -n kube-system

0 comments on commit a5658c7

Please sign in to comment.