Initial commit
This commit is contained in:
24
ansible/roles/linstor_repo/tasks/main.yml
Normal file
24
ansible/roles/linstor_repo/tasks/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# tasks file for linstor_repo
|
||||
|
||||
- name: Download LINBIT keyring package
|
||||
ansible.builtin.get_url:
|
||||
url: https://packages.linbit.com/public/linbit-keyring.deb
|
||||
dest: /tmp/linbit-keyring.deb
|
||||
mode: '0644'
|
||||
|
||||
- name: Install LINBIT keyring
|
||||
ansible.builtin.apt:
|
||||
deb: /tmp/linbit-keyring.deb
|
||||
state: present
|
||||
|
||||
- name: Add LINBIT APT repository for Proxmox
|
||||
ansible.builtin.apt_repository:
|
||||
repo: >-
|
||||
deb [signed-by=/etc/apt/trusted.gpg.d/linbit-keyring.gpg]
|
||||
https://packages.linbit.com/public/
|
||||
proxmox-{{ ansible_facts['distribution_major_version'] | int - 4 }}
|
||||
drbd-9
|
||||
filename: linbit
|
||||
state: present
|
||||
update_cache: true
|
||||
Reference in New Issue
Block a user