forked from bitlair/ansible
monitoring/mqtt_exporter: Install from debian package
This commit is contained in:
parent
bb5f845c1b
commit
ee6b8bee5c
9 changed files with 47 additions and 33 deletions
26
roles/deb_forgejo/tasks/main.yaml
Normal file
26
roles/deb_forgejo/tasks/main.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
- tags: deb_forgejo
|
||||
block:
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
|
||||
- name: Install packaging key
|
||||
get_url:
|
||||
url: https://{{ item.host }}/api/packages/{{ item.owner }}/debian/repository.key
|
||||
dest: /etc/apt/keyrings/{{ item.host }}-{{ item.owner }}.asc
|
||||
mode: "0644"
|
||||
with_items: "{{ deb_forgejo_repos }}"
|
||||
notify: apt update
|
||||
|
||||
- name: Install sources.list
|
||||
template:
|
||||
src: sources.list
|
||||
dest: /etc/apt/sources.list.d/deb-forgejo.list
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: apt update
|
||||
|
||||
- meta: flush_handlers
|
Loading…
Add table
Add a link
Reference in a new issue