Finished setup for drone server

This commit is contained in:
2023-08-01 09:14:40 +02:00
parent 4e620d6896
commit 40db88c256
25 changed files with 319 additions and 13 deletions
@@ -1,11 +1,11 @@
---
- name: create SSH key
- name: Create SSH key
hetzner.hcloud.hcloud_ssh_key:
api_token: "{{ hcloud_api_token }}"
public_key: "{{ ssh_key_admin_user }}"
name: "{{ ssh_key_admin_user_name }}"
state: present
- name: create server via HCloud
- name: Create server via HCloud
hetzner.hcloud.hcloud_server:
api_token: "{{ hcloud_api_token }}"
firewalls:
@@ -19,4 +19,4 @@
- "{{ ssh_key_admin_user_name }}"
user_data: "{{ lookup('ansible.builtin.template', 'basic-ssh-hardening.yaml.j2', convert_data=false) }}"
state: present
register: server
register: server
+2 -1
View File
@@ -1,2 +1,3 @@
---
- import_tasks: create-server.yaml
- name: Create server
ansible.builtin.import_tasks: create-server.yaml