19 lines
730 B
YAML
19 lines
730 B
YAML
######################################
|
|
# Prepare Hetzner NAT-Gateway #
|
|
######################################
|
|
---
|
|
- hosts: controller, worker, nat, local
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: Generate ssh key pair local
|
|
when: inventory_hostname in groups ['local']
|
|
import_tasks: ../tasks/hetzner_nat/generate_ssh_key.yml
|
|
|
|
- name: Configuration of NAT-Server
|
|
when: inventory_hostname in groups ['nat']
|
|
import_tasks: ../tasks/hetzner_nat/configuration_nat.yml
|
|
|
|
- name: Configuration of Client-Server (controller and worker)
|
|
when: inventory_hostname in groups ['controller'] or inventory_hostname in groups ['worker']
|
|
import_tasks: ../tasks/hetzner_nat/configuration_client.yml |