- PGP: Trust keys non-interactive with ansible
· Distributing PGP keys with ansible is easy, but trusting them is a bit difficult, because trusting them is an interactive process with no command switch. To go around this problem you have to use the ownertrust feature. Ownerturst is a text file which contains the fingerprint and the trust level. This file can be imported without user interaction.
First step is to distribute the key to your target machine. You can do this for example with the copy module: