Skip to content

Commit

Permalink
Update SOPS example. (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Oct 3, 2024
1 parent 0638512 commit 30a16c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/modules/openssl_privatekey_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,13 @@
# 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:
- 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:
content: "{{ lookup('community.sops.sops', 'private_key.pem.sops') }}"
size: 2048
Expand Down

0 comments on commit 30a16c8

Please sign in to comment.