mirror of
https://github.com/roles-ansible/ansible_role_goaccess.git
synced 2024-08-16 18:09:23 +02:00
28 lines
638 B
YAML
28 lines
638 B
YAML
---
|
|
- name: install apt-transport-https for secure repo
|
|
become: true
|
|
apt:
|
|
name: apt-transport-https
|
|
state: "{{ goaccess__state }}"
|
|
update_cache: true
|
|
|
|
- name: add goaccess apt_key
|
|
become: true
|
|
apt_key:
|
|
url: https://deb.goaccess.io/gnugpg.key
|
|
state: present
|
|
|
|
- name: add goaccess apt_repository
|
|
become: true
|
|
apt_repository:
|
|
repo: "deb https://deb.goaccess.io/ {{ ansible_distribution_release | lower }} main"
|
|
state: present
|
|
filename: goaccess
|
|
|
|
- name: install goaccess
|
|
become: true
|
|
apt:
|
|
name: goaccess
|
|
state: "{{ goaccess__state }}"
|
|
update_cache: true
|
|
cache_valid_time: 3600
|