wkd_gpg
Ansible Role: WKD
Provides tasks to export GPG keys into a Web Key Directory structure.
Requirements
Requires Python 3 on the ansible controller machine.
Required Role Variables
wkd_gpg_uids
: List of GPG uids to export. Note that the playbook loops over this list using theloop_var
set towkd_gpg_uid
.wkd_basedir
: Path to the base directory where keys are exported to. This is typically set to the webserver document root.
Optional Role Variables
wkd_method
: Eitherdirect
oradvanced
(see section Key Discovery in draft standard). Defaults toadvanced
.wkd_gpg_export_dest
: Path where the GPG keys will be exported to. Defaults to a heavily templetad string, see defaults/main.yml.wkd_gpg_export_params
: A hash of additional parameters passed to znerol.gpg_export lookup plugin. Especially useful ishomedir
in order to set the gnupg home to a directory with a source controlled public keyring and no private keys.
Dependencies
Example Playbook
Usage of znerol.wkd_gpg
role:
- hosts: localhost
vars:
wkd_gpg_uids:
- "[email protected]"
- "[email protected]"
- "[email protected]"
- "[email protected]"
- "äëöüï@example.org"
- "[email protected]"
wkd_basedir: "/var/www"
tasks:
- name: Role znerol.wkd_gpg imported
import_role:
name: znerol.wkd_gpg
License
MIT