diff --git a/yggdrasil.yml b/yggdrasil.yml index 095940d..8734a2a 100644 --- a/yggdrasil.yml +++ b/yggdrasil.yml @@ -5,10 +5,15 @@ ansible.builtin.command: gpg --fetch-keys https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/key.txt delegate_to: 127.0.0.1 run_once: true + - name: See if gpg key exists already + ansible.builtin.stat: + path: yggdrasil/yggdrasil-keyring.gpg + register: gpg_key_exists - name: export gpg key ansible.builtin.command: gpg --output yggdrasil/yggdrasil-keyring.gpg --export BC1BF63BD10B8F1A delegate_to: 127.0.0.1 run_once: true + when: gpg_key_exists.stat.exists == False - name: See if it's possible to run yggdrasil ansible.builtin.stat: path: /dev/net/tun