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

Add installation for goaccess

This commit is contained in:
L3D 2020-12-11 02:19:52 +01:00
parent 5fe27f6de7
commit a5c3d832bc
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 37 additions and 2 deletions

View file

@ -1,5 +1,8 @@
# ansible_role_template
Template for Ansible roles
ansible role goaccess
===========================
Ansible roles to install [goaccess](https://github.com/allinurl/goaccess.git) at Debian/Ubuntu systems.
**UNDER DEVELOPEMENT**
Testing
----------

View file

@ -1,3 +1,5 @@
---
goaccess__state: present
# should we do a version check? (recomended)
submodules_versioncheck: false

28
tasks/installation.yml Normal file
View file

@ -0,0 +1,28 @@
---
- name: install apt-transport-https for secure repo
become: true
apt:
name: apt-transport-https
state: "{{ goaccess__state }}"
update_cache: yes
- name: add goaccess apt_repository
become: true
apt_repository:
repo: "deb https://deb.goaccess.io/ {{ ansible_distribution_release | lowercase }} main"
state: present
filename: goaccess
- name: add goaccess apt_key
become: true
apt_key:
url: https://deb.goaccess.io/gnugpg.key
state: present
- name: install goaccess
become: true
apt:
name: goaccess
state: "{{ goaccess__state }}"
update_cache: yes
cache_valid_time: 3600

View file

@ -1,3 +1,5 @@
---
- include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
- include_tasks: installation.yml