ansible-role-thales-hsm/tasks/client_enroll.yaml
Douglas Mendizábal 45081528b1 Unpin ansible-lint
This patch unpins ansible-lint to fix the failing gate.  All lint
errors have been fixed.

Change-Id: I2f8c90db5add09e27f71cf8aecca8d0e108a3de3
2023-09-21 17:12:37 -04:00

12 lines
389 B
YAML

---
- name: Run anonkneti to get hash for "{{ item.ip }}"
ansible.builtin.command: /opt/nfast/bin/anonkneti "{{ item.ip }}"
register: anonkneti
- name: Output of anonkneti
ansible.builtin.debug:
var: anonkneti.stdout_lines
- name: Enroll client to HSM "{{ item.ip }}"
ansible.builtin.command: /opt/nfast/bin/nethsmenroll --force {{ item.ip }} {{ anonkneti.stdout_lines[0] }}