mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 02:35:54 +00:00
This patch fixes handling of password and public_key files, parameter
validation depending on vault type, usage of `salt` attribute and data
retrieval.
Tests were updated to reflect the changes.
New example playbooks are added:
playbooks/vault/vault-is-present-with-password-file.yml
playbooks/vault/vault-is-present-with-public-key-file.yml
playbooks/vault/retrive-data-asymmetric-vault.yml
playbooks/vault/retrive-data-symmetric-vault.yml
20 lines
470 B
YAML
20 lines
470 B
YAML
---
|
|
- name: Tests
|
|
hosts: ipaserver
|
|
become: true
|
|
gather_facts: True
|
|
|
|
tasks:
|
|
- name: Retrieve data from assymetric vault with a private key file.
|
|
ipavault:
|
|
ipaadmin_password: SomeADMINpassword
|
|
name: symvault
|
|
username: admin
|
|
private_key_file: private.pem
|
|
retrieve: True
|
|
register: result
|
|
- debug:
|
|
msg: "Data: {{ result.data }}"
|
|
- debug:
|
|
msg: "Decoded Data: {{ result.data | b64decode }}"
|