Skip to content

Commit 5bc0e33

Browse files
committed
fix: salt changed repo and method for adding apt package
1 parent c11d2e9 commit 5bc0e33

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

ansible/tasks/internal/install-salt.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
- name: Add apt repository for Saltstack (arm)
22
block:
3-
- name: salt gpg key
4-
ansible.builtin.apt_key:
5-
url: https://repo.saltproject.io/salt/py3/ubuntu/20.04/arm64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
6-
keyring: /etc/apt/trusted.gpg.d/salt-archive-keyring-2023-arm.gpg
3+
- name: Ensure keyrings directory exists
4+
ansible.builtin.file:
5+
path: /etc/apt/keyrings
6+
state: directory
7+
mode: '0755'
78

8-
- name: salt apt repo
9-
ansible.builtin.apt_repository:
10-
repo: deb [signed-by=/etc/apt/trusted.gpg.d/salt-archive-keyring-2023-arm.gpg arch=arm64] https://repo.saltproject.io/salt/py3/ubuntu/20.04/arm64/{{ salt_minion_version }} focal main
11-
state: present
9+
- name: Download Salt Project public key
10+
ansible.builtin.get_url:
11+
url: https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
12+
dest: /etc/apt/keyrings/salt-archive-keyring.pgp
13+
mode: '0644'
14+
15+
- name: Add Salt repository sources
16+
ansible.builtin.get_url:
17+
url: https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources
18+
dest: /etc/apt/sources.list.d/salt.sources
19+
mode: '0644'
1220
when: platform == "arm64"
1321

1422
- name: Add apt repository for Saltstack (amd)

0 commit comments

Comments
 (0)