1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_goaccess.git synced 2024-08-16 18:09:23 +02:00
ansible_role_goaccess/tasks/installation.yml

29 lines
638 B
YAML
Raw Permalink Normal View History

2020-12-11 02:19:52 +01:00
---
- name: install apt-transport-https for secure repo
become: true
apt:
name: apt-transport-https
state: "{{ goaccess__state }}"
2021-01-19 20:14:30 +01:00
update_cache: true
2020-12-11 02:19:52 +01:00
2020-12-11 03:05:28 +01:00
- name: add goaccess apt_key
become: true
apt_key:
url: https://deb.goaccess.io/gnugpg.key
state: present
2020-12-11 02:19:52 +01:00
- name: add goaccess apt_repository
become: true
apt_repository:
2020-12-11 02:54:43 +01:00
repo: "deb https://deb.goaccess.io/ {{ ansible_distribution_release | lower }} main"
2020-12-11 02:19:52 +01:00
state: present
filename: goaccess
- name: install goaccess
become: true
apt:
name: goaccess
state: "{{ goaccess__state }}"
2021-01-19 20:14:30 +01:00
update_cache: true
2020-12-11 02:19:52 +01:00
cache_valid_time: 3600