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:
parent
5fe27f6de7
commit
a5c3d832bc
4 changed files with 37 additions and 2 deletions
|
@ -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
|
||||
----------
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
goaccess__state: present
|
||||
|
||||
# should we do a version check? (recomended)
|
||||
submodules_versioncheck: false
|
||||
|
|
28
tasks/installation.yml
Normal file
28
tasks/installation.yml
Normal 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
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
- include_tasks: versioncheck.yml
|
||||
when: submodules_versioncheck|bool
|
||||
|
||||
- include_tasks: installation.yml
|
||||
|
|
Loading…
Reference in a new issue