Ansible/roles/sensu.sensu/tasks/Ubuntu/main.yml

36 lines
803 B
YAML
Raw Normal View History

---
# tasks/Ubuntu/main.yml: Ubuntu specific set-up
# This takes care of base prerequisites for Ubuntu
- name: Include ansible_distribution vars
include_vars:
file: "{{ ansible_distribution }}.yml"
tags: setup
- name: Ensure that https transport is ready
tags: setup
apt:
name: apt-transport-https
state: present
cache_valid_time: 3600
update_cache: true
- name: Ensure the Sensu APT repo GPG key is present
tags: setup
apt_key:
url: "{{ sensu_apt_key_url }}"
state: present
- name: Ensure the Sensu Core APT repo is present
tags: setup
apt_repository:
repo: "{{ sensu_apt_repo_url }}"
state: present
update_cache: true
- name: Ensure Sensu is installed
tags: setup
apt:
name: "{{ sensu_package }}"
state: "{{ sensu_pkg_state }}"