From 88f338dd69959cfce6606ffb4fd7fb0cbdfa9bd0 Mon Sep 17 00:00:00 2001 From: Ueli Bosshard Date: Sat, 15 Nov 2025 14:38:56 +0100 Subject: [PATCH] initial commit --- cloudscale_srv_config.yml | 19 +++++++++++++++++++ cloudscale_srv_create.yml | 12 ++++++++++++ cloudscale_srv_delete.yml | 9 +++++++++ inv_cloudscale.yml | 1 + 4 files changed, 41 insertions(+) create mode 100644 cloudscale_srv_config.yml create mode 100644 cloudscale_srv_create.yml create mode 100644 cloudscale_srv_delete.yml create mode 100644 inv_cloudscale.yml diff --git a/cloudscale_srv_config.yml b/cloudscale_srv_config.yml new file mode 100644 index 0000000..e49822b --- /dev/null +++ b/cloudscale_srv_config.yml @@ -0,0 +1,19 @@ +--- + +- name: Apache2 auf Remote-Server installieren + hosts: ubo5 + remote_user: debian + become: true + tasks: + - name: Apache2 installieren + apt: + name: apache2 + state: present + update_cache: yes + + - name: Apache2 aktivieren und starten + service: + name: apache2 + state: started + enabled: true + diff --git a/cloudscale_srv_create.yml b/cloudscale_srv_create.yml new file mode 100644 index 0000000..a1b59e4 --- /dev/null +++ b/cloudscale_srv_create.yml @@ -0,0 +1,12 @@ +--- +- name: Using cloudscale.ch collection + hosts: localhost + collections: + - cloudscale_ch.cloud + tasks: + - server: + name: ubo5 + image: debian-12 + flavor: flex-4-1 + ssh_keys: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl6TPTdcIoONUYBYFF7T96JJ1SNq9VeFOzR7LUNoFHJ ueli@Air-von-Ueli diff --git a/cloudscale_srv_delete.yml b/cloudscale_srv_delete.yml new file mode 100644 index 0000000..f10e456 --- /dev/null +++ b/cloudscale_srv_delete.yml @@ -0,0 +1,9 @@ +--- +- name: Using cloudscale.ch collection + hosts: localhost + collections: + - cloudscale_ch.cloud + tasks: + - server: + state: absent + name: ubo5 diff --git a/inv_cloudscale.yml b/inv_cloudscale.yml new file mode 100644 index 0000000..d299f95 --- /dev/null +++ b/inv_cloudscale.yml @@ -0,0 +1 @@ +plugin: cloudscale