Skip to content
Snippets Groups Projects
Commit 1d6a5345 authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

removes defaults and force to have value

parent 5687882a
No related branches found
No related tags found
1 merge request!1Monitoring
......@@ -2,14 +2,14 @@
pre_tasks:
- name: Check parameters
fail:
msg: 'variable {{item}} not defined'
when: (item is not defined) or (item|length == 0)
msg: 'variable {{item}} empty'
when: item | length == 0
with_items:
- pma_deployment_id
- pma_influxdb_bucket
- pma_influxdb_token
- pma_influxdb_org
- pma_influxdb_addr
- "{{ pma_deployment_id }}"
- "{{ pma_influxdb_bucket }}"
- "{{ pma_influxdb_token }}"
- "{{ pma_influxdb_org }}"
- "{{ pma_influxdb_addr }}"
- name: Print parameters
debug:
msg:
......@@ -17,7 +17,8 @@
- "pma_influxdb_bucket: {{ pma_influxdb_bucket }}"
- "pma_influxdb_token: {{ pma_influxdb_token }}"
- "pma_influxdb_org: {{ pma_influxdb_org }}"
- "pma_influxdb_addr: {{ pma_influxdb_addr }}"
- "pma_influxdb_addr: {{ pma_influxdb_addr | length }}"
- "monjon: {{ monjon | length }}"
- name: Ensure gnupg package
package:
name: gnupg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment