archweb role can't be deployed on a new box
There is a chicken and egg problem in that the role creates /srv/http/archweb and then tries to clone archweb.git in that directory.
TASK [clone archweb repo] ***********************************************************************************************************************************************
Thursday 25 June 2020 21:57:48 +0200 (0:00:00.050) 0:00:05.443 *********
fatal: [gemini.archlinux.org]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin https://github.com/archlinux/archweb.git /srv/http/archweb", "msg": "fatal: destination path '/srv/http/archweb' already exists and is not an empty directory.", "rc": 128, "stderr": "fatal: destination path '/srv/http/archweb' already exists and is not an empty directory.\n", "stderr_lines": ["fatal: destination path '/srv/http/archweb' already exists and is not an empty directory."], "stdout": "", "stdout_lines": []}
PLAY RECAP **************************************************************************************************************************************************************
gemini.archlinux.org : ok=4 changed=0 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0
And
TASK [clone archweb repo] ***********************************************************************************************************************************************
Thursday 25 June 2020 22:04:52 +0200 (0:00:00.044) 0:00:05.342 *********
fatal: [gemini.archlinux.org]: FAILED! => {"changed": false, "msg": "Failed to verify GPG signature of commit/tag \"release_2020-06-05\"", "rc": 1, "stderr": "[GNUPG:] NEWSIG\n[GNUPG:] ERRSIG C06086337C50773E 1 8 00 1591391236 9 E499C79F53C96A54E572FEE1C06086337C50773E\n[GNUPG:] NO_PUBKEY C06086337C50773E\n", "stderr_lines": ["[GNUPG:] NEWSIG", "[GNUPG:] ERRSIG C06086337C50773E 1 8 00 1591391236 9 E499C79F53C96A54E572FEE1C06086337C50773E", "[GNUPG:] NO_PUBKEY C06086337C50773E"], "stdout": "", "stdout_lines": []}
PLAY RECAP **************************************************************************************************************************************************************
gemini.archlinux.org : ok=4 changed=0 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0
Edited by Jelle van der Waa