Add task to remove clients from HSM

Change-Id: I87f7cb2435f77814169fbad3bd0814d370a546a1
This commit is contained in:
Douglas Mendizábal 2020-11-06 10:53:24 -06:00
parent 1f79d940a6
commit b3981c6f8b
1 changed files with 8 additions and 0 deletions

View 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