Skip to content

Commit

Permalink
Merge pull request #11 from sbesson/ansible28_lint
Browse files Browse the repository at this point in the history
Fix Ansible lint 208
  • Loading branch information
sbesson authored Feb 1, 2021
2 parents ade3654 + 1686119 commit b5752e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
scenario: ${{ matrix.scenario }}

build:
publish:
name: Galaxy
if: startsWith(github.ref, 'refs/tags')
needs:
Expand Down
1 change: 1 addition & 0 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
copy:
content: fake_metric_value 5
dest: /srv/alternative-metrics
mode: 0644

- name: fake metric server
become: true
Expand Down
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
file:
path: "{{ item }}"
state: directory
mode: 0755
with_items:
- /etc/prometheus
- /etc/prometheus/rules
Expand All @@ -17,6 +18,7 @@
dest: /etc/prometheus/prometheus.yml
force: true
src: etc-prometheus-prometheus-yml.j2
mode: 0644
register: prometheus_configuration

- name: prometheus | prometheus alert rules
Expand All @@ -25,6 +27,7 @@
dest: /etc/prometheus/rules/default-alert.rules.yml
force: true
src: etc-prometheus-default-alert-rules-yml.j2
mode: 0644
register: prometheus_alert_rules

- name: prometheus | prometheus additional alert rules
Expand All @@ -33,6 +36,7 @@
dest: /etc/prometheus/rules/additional-alert.rules.yml
force: true
src: "{{ prometheus_additional_rules_template }}"
mode: 0644
register: prometheus_alert_rules_additional

- name: prometheus | alertmanager configuration file
Expand All @@ -41,6 +45,7 @@
dest: /etc/prometheus/alertmanager.yml
force: true
src: etc-prometheus-alertmanager-yml.j2
mode: 0644
register: prometheus_alertmanager_configuration

- name: prometheus | blackbox configuration file
Expand All @@ -49,6 +54,7 @@
dest: /etc/prometheus/blackbox-exporter.yml
force: true
src: etc-prometheus-blackbox-exporter.yml
mode: 0644
register: prometheus_blackboxexporter_configuration

- name: prometheus | file sd configs
Expand All @@ -57,6 +63,7 @@
dest: /etc/prometheus/targets/{{ item.groupname }}.yml
force: true
src: file_sd_config-template-yml.j2
mode: 0644
with_items:
- "{{ prometheus_sd_targets }}"

Expand Down

0 comments on commit b5752e2

Please sign in to comment.