From 65df285ef3dd033b69cc7448dbe0b593fe49a659 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 22 Feb 2019 20:45:18 +0000 Subject: [PATCH] Add repo GPG key management to Ansible --- .ansible/roles/desktop/tasks/linux/00_software.yaml | 10 ++++++++++ .ansible/roles/desktop/vars/linux.yaml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/.ansible/roles/desktop/tasks/linux/00_software.yaml b/.ansible/roles/desktop/tasks/linux/00_software.yaml index f4c9c22..ce01436 100644 --- a/.ansible/roles/desktop/tasks/linux/00_software.yaml +++ b/.ansible/roles/desktop/tasks/linux/00_software.yaml @@ -1,3 +1,13 @@ +- name: Apt public GPG keys + tags: + - install + - repos + apt_key: + state: present + url: "{{ item }}" + loop: "{{ linux_repos_keys }}" + become: true + - name: Adding repositories tags: - install diff --git a/.ansible/roles/desktop/vars/linux.yaml b/.ansible/roles/desktop/vars/linux.yaml index 1c55681..460a2a6 100644 --- a/.ansible/roles/desktop/vars/linux.yaml +++ b/.ansible/roles/desktop/vars/linux.yaml @@ -10,6 +10,13 @@ linux_repos: - 'deb http://prerelease.keybase.io/deb stable main' # Keybase - 'deb https://apt.enpass.io/ stable main' # Enpass +linux_repos_keys: + - 'https://packages.microsoft.com/keys/microsoft.asc' # Visual Studio Code + - 'https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_18.10/Release.key' # Albert + - 'http://linux-packages.resilio.com/resilio-sync/key.asc' # Resilio Sync + - 'https://keybase.io/docs/server_security/code_signing_key.asc' # Keybase + - 'https://apt.enpass.io/keys/enpass-linux.key' # Enpass + linux_packages: - albert - chrome-gnome-shell