Skip to content
Snippets Groups Projects
Commit 098fdc3e authored by laurentiu.niculut@hpe.com's avatar laurentiu.niculut@hpe.com
Browse files

y2 release

parent 0d46d8b9
No related branches found
No related tags found
No related merge requests found
---
- hosts: localhost
tasks:
- name: print disclamer
debug:
msg: this can also be done with "ansible-galaxy install -r requirements"
- name: install telegraf from galaxy
community.general.ansible_galaxy_install:
type: role
requirements_file: ansible_requirements.yml
- hosts: servers_for_performance_monitoring
pre_tasks:
- name: Check parameters
fail:
msg: 'variable {{item}} not defined'
when: item is not defined
with_items:
- pma_deployment_id
- pma_influxdb_bucket
- pma_influxdb_token
- pma_influxdb_org
- pma_influxdb_addr
- name: Print parameters
debug:
msg:
- "pma_deployment_id: {{ pma_deployment_id }}"
- "pma_influxdb_bucket: {{ pma_influxdb_bucket }}"
- "pma_influxdb_token: {{ pma_influxdb_token }}"
- "pma_influxdb_org: {{ pma_influxdb_org }}"
- "pma_influxdb_addr: {{ pma_influxdb_addr }}"
- name: Ensure gnupg package
package:
name: gnupg
state: present
become: true
vars_files:
- vars/main.yaml
tasks:
- name: Install telegraf
ansible.builtin.include_role:
name: dj-wasabi.telegraf
...@@ -17,10 +17,9 @@ ...@@ -17,10 +17,9 @@
--- ---
engine: terraform engine: terraform
input: input:
- VSPHERE_USER - AWS_ACCESS_KEY_ID
- VSPHERE_PASSWORD - AWS_SECRET_ACCESS_KEY
- VSPHERE_SERVER - AWS_REGION
- VSPHERE_ALLOW_UNVERIFIED_SSL
output: output:
{% for vm in vms %} {% for vm in vms %}
- instance_server_public_key_{{ vm.credentials }} - instance_server_public_key_{{ vm.credentials }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment