Add task to remove clients from HSM
Change-Id: I87f7cb2435f77814169fbad3bd0814d370a546a1
This commit is contained in:
parent
1f79d940a6
commit
b3981c6f8b
8
tasks/unregister_client.yaml
Normal file
8
tasks/unregister_client.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Delete clients from HSM
|
||||
shell: >
|
||||
sshpass -p '{{ item.admin_password }}' ssh -o StrictHostKeyChecking=false
|
||||
-c aes256-cbc admin@{{ item.hostname }}
|
||||
-C "client delete -f -c {{ client_name }}"
|
||||
loop: "{{ lunasa_hsms }}"
|
||||
ignore_errors: true
|
Loading…
Reference in New Issue
Block a user