You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lyz 5e8a97a8d8
Update syntax to meet molecule lint and syntax requirements
1 month ago
defaults [fix] clear default password 1 year ago
meta [feat] add tests and molecule 1 year ago
molecule/default Update syntax to meet molecule lint and syntax requirements 1 month ago
tasks Update syntax to meet molecule lint and syntax requirements 1 month ago
templates * [feat] initial commit 2 years ago
vars [feat] add tests and molecule 1 year ago
.gitignore [fix] clean up 1 year ago
.yamllint [feat] add tests and molecule 1 year ago
COPYING license and gitignore 2 years ago
History.md Update syntax to meet molecule lint and syntax requirements 1 month ago
README.md [feat] add tests and molecule 1 year ago

README.md

create-key

Create gpg key

Based on the role of juju4

Role Variables

  • gpg_user : User that will own the keyring [Default: ansible user]
  • gpg_homedir : Path to the .gnupg directory [Default: ~/.gnupg]
  • gpg_keylength : Key Length [Default: 4096]
  • gpg_subkeylength : Subkey length [Default: 4096]
  • gpg_realname : Name that will appear in the gpg key [Default: GPG Ansible user]
  • gpg_useremail : Email that will appear in the gpg key [Default: "{{ gpg_user }}@{{ ansible_ssh_host }}"]
  • gpg_expire : Expiration of the key (in days)[Default: 360]
  • gpg_passphrase : BY DEFAULT IS EMPTY, CHANGE IF YOU DON’T WANT THIS BEHAVIOR [Default: ]

Example playbook

- hosts: all
  roles:
    - create-key

Testing

To test the role you need molecule.

molecule test

(The tests cover only the default case, if you feel like it, make more test cases :))

License

GPLv2

Author Information

Lyz (lyz@riseup.net)