Giter Club home page Giter Club logo

ansible-role-gpg_key's Introduction

Ansible Role - GPG Key

Build Status

Generate or import GPG Key on Linux.

Requirements

None.

Role Variables

TODO

Dependencies

shrikeh.haveged

Example Playbook

- hosts: servers
  roles:
     - role: vkill.gpg_key

License

MIT / BSD

Author Information

vkill [email protected]

© 2016

ansible-role-gpg_key's People

Contributors

vkill avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-role-gpg_key's Issues

Unattended key generation fails

Before 3755315 (which I got merged by accident) this role would fail with the following error:

ansible-container_1  | TASK [vkill.gpg_key : Generate new secret key] *********************************
ansible-container_1  | fatal: [riemann]: FAILED! => {"changed": true, "cmd": ["gpg", "--batch", "--gen-key", "~/.gnupg/6f75024504f8009385c067c8673c144c/generate_script"], "delta": "0:00:01.227448", "end": "2017-04-13 21:02:55.993674", "failed": true, "rc": 2, "start": "2017-04-13 21:02:54.766226", "stderr": "gpg: Generating a basic OpenPGP key\ngpg: agent_genkey failed: Inappropriate ioctl for device\ngpg: key generation failed: Inappropriate ioctl for device\ngpg: done", "stdout": "", "stdout_lines": [], "warnings": []}

After it fails with:

ansible-container_1  | TASK [vkill.gpg_key : Generate new secret key] *********************************
ansible-container_1  | fatal: [riemann]: FAILED! => {"changed": true, "cmd": ["gpg", "--batch", "--gen-key", "~/.gnupg/25275f31df635f2618e559e291a86941/generate_script"], "delta": "0:00:01.134989", "end": "2017-04-13 23:17:21.399444", "failed": true, "rc": 2, "start": "2017-04-13 23:17:20.264455", "stderr": "gpg: Generating a basic OpenPGP key\ngpg: Sorry, we are in batchmode - can't get input", "stdout": "", "stdout_lines": [], "warnings": []}

I'll try to work on resolving this myself and will make a PR if I figure it out, but in the meanwhile I wanted to report it here, since you already merged the code which I think is a step toward resolving in. Here are some relevant links you may want to look over:

  1. https://webcache.googleusercontent.com/search?q=cache:roJ_W6TLB_gJ:https://bugs.g10code.com/gnupg/issue1772+&cd=1&hl=en&ct=clnk&gl=us
  2. https://github.com/freedomofpress/infrastructure/pull/489/commits/34cc2b9535ce410e23b84714e21227c57c460817
  3. https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase
  4. https://bbs.archlinux.org/viewtopic.php?pid=1479136

For what it's worth, I was not setting a passphrase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.