ansible-role-sensu/tasks/repository-debian.yml

39 lines
780 B
YAML
Raw Permalink Normal View History

2019-01-01 19:44:04 +00:00
---
- name: install dependencies packages
package:
2019-01-01 19:44:04 +00:00
name: '{{ packages }}'
vars:
packages:
- apt-transport-https
- ca-certificates
- gnupg2
- software-properties-common
2019-02-16 18:00:14 +00:00
- build-essential
2019-01-01 19:44:04 +00:00
register: result
retries: 3
delay: 1
until: result is success
tags: sensu
- name: add gpg key for sensu repository
apt_key:
url: 'https://packagecloud.io/sensu/{{ item }}/gpgkey'
loop:
- stable
- community
register: result
retries: 3
delay: 1
until: result is success
tags: sensu
- name: add sensu repository
apt_repository:
repo: >
deb https://packagecloud.io/sensu/{{ item }}/{{ sensu_repository_system }}/
{{ sensu_repository_release }} main
loop:
- stable
- community
tags: sensu