Skip to content

Commit

Permalink
Update to use the lates Ansible Equinix module
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Dec 11, 2023
1 parent 322a026 commit d69fb92
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions scripts/ansible/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,29 @@

- hosts: localhost
tasks:
- equinix.metal.device:
hostnames: [dkron01, dkron02, dkron03]
- equinix.cloud.metal_device:
hostname: "{{ item }}"
operating_system: ubuntu_22_04
plan: c3.small.x86
facility: am6
wait_for_public_IPv: 4
metro: am
project_id: 904af849-79ff-4847-90f7-dfa02367ae72
tags:
- server
register: newhosts
loop:
- dkron01
- dkron02
- dkron03

- equinix.metal.device:
- equinix.cloud.metal_device:
hostnames: [dkron04]
operating_system: ubuntu_22_04
plan: c3.small.x86
facility: am6
wait_for_public_IPv: 4
metro: am
project_id: 904af849-79ff-4847-90f7-dfa02367ae72
tags:
- agent
register: newhosts
register: anotherhost

- debug: var=newhosts

Expand All @@ -34,15 +36,15 @@
port: 22
state: started
timeout: 500
loop: "{{ newhosts.devices }}"
loop: "{{ newhosts.results }}"

- hosts: equinix_metal
user: root
become: true
become_method: sudo

vars:
version: 3.2.2
version: 3.2.7
datadog_api_key: "{{ lookup('ansible.builtin.env', 'DKRON_DD_API_KEY') }}"
datadog_checks:
openmetrics:
Expand Down Expand Up @@ -130,7 +132,7 @@
become_method: sudo

vars:
version: 3.2.0
version: 3.2.7
dkron_log_level: debug
dkron_bootstrap_expect: 3
dkron_data_dir: /var/lib/dkron
Expand Down

0 comments on commit d69fb92

Please sign in to comment.