added creating new vps, fine tuned inventories (now using 2), + doc
This commit is contained in:
19
roles/install/tasks/main.yaml
Normal file
19
roles/install/tasks/main.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Create server
|
||||
hcloud_server:
|
||||
name: "{{ hostname }}"
|
||||
server_type: "{{ type }}"
|
||||
image: "{{ image }}"
|
||||
location: "{{ location }}"
|
||||
enable_ipv4: false
|
||||
state: present
|
||||
ssh_keys: "{{ ssh_keys }}"
|
||||
register: server
|
||||
|
||||
# - command: which python
|
||||
# register: result
|
||||
|
||||
# - name: Install Packages
|
||||
# community.general.pkgng:
|
||||
# state: present
|
||||
# name: "{{ packages }}"
|
||||
12
roles/remove/tasks/main.yaml
Normal file
12
roles/remove/tasks/main.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Remove server
|
||||
hcloud_server:
|
||||
name: "{{ hostname }}"
|
||||
server_type: "{{ type }}"
|
||||
image: "{{ image }}"
|
||||
location: "{{ location }}"
|
||||
enable_ipv4: false
|
||||
state: absent
|
||||
ssh_keys: "{{ ssh_keys }}"
|
||||
register: server
|
||||
|
||||
Reference in New Issue
Block a user