James Tombleson
b7facd7394
Added Sensu Moved default role downloads to ./roles Added unattended-upgrades
42 lines
914 B
YAML
42 lines
914 B
YAML
---
|
|
# tasks/Debian/main.yml: Debian specific set-up
|
|
# This takes care of base prerequisites for Debian
|
|
|
|
- name: Include ansible_distribution vars
|
|
include_vars:
|
|
file: "{{ ansible_distribution }}.yml"
|
|
tags: setup
|
|
|
|
- name: Ensure apt-transport-https is installed
|
|
tags: setup
|
|
apt:
|
|
name: apt-transport-https
|
|
state: present
|
|
cache_valid_time: 3600
|
|
update_cache: true
|
|
|
|
- name: Ensure that gnupg is installed for apt_key
|
|
tags: setup
|
|
apt:
|
|
name: gnupg
|
|
state: present
|
|
|
|
- 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 }}"
|