1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-02 10:46:37 +02:00

Add pgp key fetching using WKD to dbscripts role

This commit is contained in:
Jelle van der Waa 2020-07-12 12:37:43 +02:00
parent 4cd25e3c57
commit 9b98a22850
No known key found for this signature in database
GPG Key ID: C06086337C50773E
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
---
dbscripts_commit: HEAD
dbscripts_update: yes
dbscripts_pgp_emails: ['eschwartz@archlinux.org']

View File

@ -69,7 +69,7 @@
- name: create staging directories in user homes
dbscripts_mkdirs:
pathtmpl: '/home/{user}/staging/{dirname}'
permissions: 755
permissions: '755'
directories: ['', 'core', 'extra', 'testing', 'staging', 'community', 'community-staging', 'community-testing', 'multilib', 'multilib-staging', 'multilib-testing']
users: "{{ arch_users.keys() | list }}"
group: users
@ -150,6 +150,12 @@
- name: add acl group:dev:rw- to /srv/ftp/lastupdate
acl: name=/srv/ftp/lastupdate entry="group:dev:rw-" state=present
- name: fetch dbscripts PGP key
command: /usr/bin/gpg --keyserver keys.openpgp.org --auto-key-locate wkd,keyserver --locate-keys {{ item }}
with_items: '{{ dbscripts_pgp_emails }}'
register: gpg
changed_when: "gpg.rc == 0"
- name: clone dbscripts git repo
git: >
dest=/srv/repos/{{ item }}/dbscripts