Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change repo url #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions defaults/debian-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@

grafana_apt_dependencies:
- apt-transport-https

grafana_apt_distribution: "{{ ansible_distribution_release | lower }}"
2 changes: 0 additions & 2 deletions defaults/debian-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
#

grafana_apt_dependencies: []

grafana_apt_distribution: wheezy
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# defaults file
#

grafana_version: 5.4.3
grafana_gpg_key_id: 24098CB6
grafana_admin_password: admin
grafana_admin_user: admin
grafana_conf_file: /etc/grafana/grafana.ini
Expand Down
1 change: 0 additions & 1 deletion tasks/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- grafana_admin_password
- grafana_admin_user
- grafana_apt_dependencies
- grafana_apt_distribution
- grafana_conf_data
- grafana_conf_file
- grafana_default
Expand Down
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@

- name: ensure grafana apt key is present
apt_key:
url=https://packagecloud.io/gpg.key
id=D59097AB
url=https://packages.grafana.com/gpg.key
id="{{ grafana_gpg_key_id }}"
state=present
become: yes
tags: [ apt ]

- name: ensure grafana apt repository is present
apt_repository:
repo="deb https://packagecloud.io/grafana/stable/{{ ansible_os_family | lower }}/ {{ grafana_apt_distribution }} main"
repo="deb https://packages.grafana.com/oss/deb stable main"
update_cache=yes
state=present
become: yes
tags: [ apt ]

- name: ensure grafana is installed
apt:
name=grafana
name="grafana={{ grafana_version }}"
state=present
become: yes
tags: installation
Expand Down Expand Up @@ -79,7 +79,7 @@
mode=0755
state=directory
become: yes

- name: ensure grafana directories ownership and permissions
file:
path="{{ item }}"
Expand Down
1 change: 0 additions & 1 deletion tasks/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
- grafana_admin_password
- grafana_admin_user
- grafana_apt_dependencies
- grafana_apt_distribution
- grafana_conf_data
- grafana_conf_file
- grafana_default
Expand Down