diff --git a/all/common/tasks/main.yml b/all/common/tasks/main.yml index e54621b26b7e8b35da9c10ddb9e6e7a65d08ba28..6a35b3ecc19269cf121639a376e7f19fa7f8fa29 100644 --- a/all/common/tasks/main.yml +++ b/all/common/tasks/main.yml @@ -12,12 +12,19 @@ with_items: - apt-transport-https -- name: add debian repo keys +- name: add debian repo keys (id) + apt_key: + id: "{{ item }}" + state: present + with_items: "{{ debian_keys_id }}" + when: debian_keys_id + +- name: add debian repo keys (url) apt_key: url: "{{ item }}" state: present - with_items: "{{ debian_keys }}" - when: debian_keys + with_items: "{{ debian_keys_url }}" + when: debian_keys_url - name: set debian repos template: src=sources.list.j2 dest=/etc/apt/sources.list diff --git a/host_vars/vorstand b/host_vars/vorstand index 0fe7d6d92cc3be20e164da661724c8bce06cb4fc..13106279fb5143db01d66a5810b696c63065a723 100644 --- a/host_vars/vorstand +++ b/host_vars/vorstand @@ -8,10 +8,15 @@ motd_lines: debian_sources: - "deb http://repo.myloc.de/debian stretch main non-free contrib" - "deb https://download.docker.com/linux/debian stretch stable" + - "deb http://packages.x2go.org/debian stretch main" -debian_keys: +debian_keys_id: + - "E1F958385BFE2B6E" # x2go repo key + +debian_keys_url: - "https://download.docker.com/linux/debian/gpg" + administratorenteam: - "sandhome" - "sandmobil" diff --git a/host_vars/warphab b/host_vars/warphab index b14fd6421548aaa992f6bbf4bc43d4396fc157b9..deef8ea98db6833b4ee0f04bb5d54c97d936c39c 100644 --- a/host_vars/warphab +++ b/host_vars/warphab @@ -10,7 +10,9 @@ debian_sources: - "deb https://homegear.eu/packages/Raspbian/ jessie/" - "deb http://dl.bintray.com/openhab/apt-repo2 testing main" -debian_keys: +debian_keys_id: + +debian_keys_url: - "https://homegear.eu/packages/Release.key" - "https://bintray.com/user/downloadSubjectPublicKey?username=openhab" diff --git a/host_vars/warpsrvext b/host_vars/warpsrvext index 3691f9540aa5cc88542dbc437e5c6c15332acdde..fccc4605209c905a5f9ee54d079d457d2e47dae7 100644 --- a/host_vars/warpsrvext +++ b/host_vars/warpsrvext @@ -10,7 +10,9 @@ debian_sources: - "deb http://security.debian.org/ jessie/updates main contrib non-free" - "deb http://ftp.debian.org/debian jessie-backports main" -debian_keys: +debian_keys_id: + +debian_keys_url: administratorenteam: - "void" diff --git a/host_vars/warpsrvint b/host_vars/warpsrvint index 741dfea354ad4da9daf38e2670413c31a61170ac..0d879ca8b0eb1b5f37b2bec92d5cac2f5982392d 100644 --- a/host_vars/warpsrvint +++ b/host_vars/warpsrvint @@ -13,7 +13,9 @@ debian_sources: - "deb https://apt.dockerproject.org/repo debian-jessie main" - "deb [arch=amd64] https://download.docker.com/linux/debian jessie stable" -debian_keys: +debian_keys_id: + +debian_keys_url: - "https://download.docker.com/linux/debian/gpg" webserver_domains: diff --git a/host_vars/webserver b/host_vars/webserver index 706af93e1418634333552f30ef614d820775a250..38c6e9a2d6f15b7a48aac476dab786eed27bde54 100644 --- a/host_vars/webserver +++ b/host_vars/webserver @@ -12,7 +12,9 @@ debian_sources: - "deb http://ftp.halifax.rwth-aachen.de/debian/ stretch-updates main contrib non-free" - "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" -debian_keys: +debian_keys_id: + +debian_keys_url: - "https://download.docker.com/linux/debian/gpg"