mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 22:33:53 +00:00
Update SOPS example. (#806)
This commit is contained in:
@@ -102,9 +102,13 @@ EXAMPLES = r'''
|
|||||||
# DO NOT OUTPUT KEY MATERIAL TO CONSOLE OR LOGS IN PRODUCTION!
|
# DO NOT OUTPUT KEY MATERIAL TO CONSOLE OR LOGS IN PRODUCTION!
|
||||||
|
|
||||||
|
|
||||||
- name: Generate or update a Mozilla sops encrypted key
|
# The following example needs CNCF SOPS (https://github.com/getsops/sops) set up and
|
||||||
|
# the community.sops collection installed. See also
|
||||||
|
# https://docs.ansible.com/ansible/latest/collections/community/sops/docsite/guide.html
|
||||||
|
|
||||||
|
- name: Generate or update a CNCF SOPS encrypted key
|
||||||
block:
|
block:
|
||||||
- name: Update sops-encrypted key with the community.sops collection
|
- name: Update SOPS-encrypted key with the community.sops collection
|
||||||
community.crypto.openssl_privatekey_pipe:
|
community.crypto.openssl_privatekey_pipe:
|
||||||
content: "{{ lookup('community.sops.sops', 'private_key.pem.sops') }}"
|
content: "{{ lookup('community.sops.sops', 'private_key.pem.sops') }}"
|
||||||
size: 2048
|
size: 2048
|
||||||
|
|||||||
Reference in New Issue
Block a user