2022-11-18 18:33:37 +01:00
|
|
|
- name: Create /usr/local/apt-keys directory
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /usr/local/apt-keys
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
- name: Download GPG key
|
|
|
|
ansible.builtin.shell: gpg --fetch-keys https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/key.txt
|
|
|
|
|
|
|
|
- name: Install GPG key
|
|
|
|
ansible.builtin.shell: gpg --export 569130E8CA20FBC4CB3FDE555898470A764B32C9 | sudo tee /usr/local/apt-keys/yggdrasil-keyring.gpg > /dev/null
|
|
|
|
|
|
|
|
- name: Add specified repository into sources list using specified filename
|
|
|
|
ansible.builtin.apt_repository:
|
|
|
|
repo: deb [signed-by=/usr/local/apt-keys/yggdrasil-keyring.gpg] http://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/ debian yggdrasil
|
|
|
|
state: present
|
|
|
|
filename: yggdrasil
|
|
|
|
|
|
|
|
- name: Update repositories cache and install "yggdrasil" package
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: yggdrasil
|
|
|
|
update_cache: yes
|
|
|
|
|
2022-12-27 20:37:22 +01:00
|
|
|
- block:
|
|
|
|
- include_tasks: "update_peers.yml"
|
2022-11-18 18:33:37 +01:00
|
|
|
|
|
|
|
- name: Enable Yggdrasil service
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: yggdrasil
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
masked: no
|