From 8bef486ab3ec22b2f50f2683ce12230361bcf4fa Mon Sep 17 00:00:00 2001 From: h <9pfs@amcforum.wiki> Date: Wed, 1 Jan 2025 13:23:55 -0800 Subject: [PATCH] fix yggdrasil --- yggdrasil.yml | 5 +++++ 1 file changed, 5 insertions(+) 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