You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
---
|
|
|
|
### tags:
|
|
|
|
# TODO remove static ip configuration
|
|
- name: Create a server network and specify the ip address
|
|
hcloud_server_network:
|
|
api_token: "{{ hetzner_authentication_token }}"
|
|
network: dev-elastic-stack
|
|
server: dev-elastic-stack-01
|
|
ip: 10.0.0.2
|
|
state: present
|
|
delegate_to: 127.0.0.1
|
|
|
|
# TODO remove static ip configuration
|
|
- name: Create a server network and specify the ip address
|
|
hcloud_server_network:
|
|
api_token: "{{ hetzner_authentication_token }}"
|
|
network: dev-elastic-stack
|
|
server: dev-elastic-stack-02
|
|
ip: 10.0.0.3
|
|
state: present
|
|
delegate_to: 127.0.0.1
|
|
|
|
# TODO remove static ip configuration
|
|
- name: Create a server network and specify the ip address
|
|
hcloud_server_network:
|
|
api_token: "{{ hetzner_authentication_token }}"
|
|
network: dev-elastic-stack
|
|
server: dev-elastic-stack-03
|
|
ip: 10.0.0.4
|
|
state: present
|
|
delegate_to: 127.0.0.1
|
|
|
|
- name: Create a server network and specify the ip address
|
|
hcloud_server_network:
|
|
api_token: "{{ hetzner_authentication_token }}"
|
|
network: dev-elastic-stack
|
|
server: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ groups['hcloud'] | difference(groups['elastic']) }}"
|
|
delegate_to: 127.0.0.1
|
|
|
|
# TODO remove static ip configuration
|
|
- name: Create a server network and specify the ip address
|
|
hcloud_server_network:
|
|
api_token: "{{ hetzner_authentication_token }}"
|
|
network: dev-keycloak
|
|
server: dev-keycloak-01
|
|
ip: 10.1.0.2
|
|
state: present
|
|
delegate_to: 127.0.0.1
|
|
|
|
- name: Create a server network and specify the ip address
|
|
hcloud_server_network:
|
|
api_token: "{{ hetzner_authentication_token }}"
|
|
network: dev-keycloak
|
|
server: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ groups['connect'] }}"
|
|
delegate_to: 127.0.0.1
|