diff --git a/examples/create-osimage.yaml b/examples/create-osimage.yaml new file mode 100644 index 0000000..ae616e4 --- /dev/null +++ b/examples/create-osimage.yaml @@ -0,0 +1,27 @@ +--- +# +# DECORT osimage module example +# +- hosts: localhost + tasks: + - name: create + decort_osimage: + authenticator: oauth2 + verify_ssl: False + controller_url: "https://ds1.digitalenergy.online" + state: present + image_name: "alpine_linux3.14.0" + account_Id: 12345 + url: "https://dl-cdn.alpinelinux.org/alpine/v3.14/releases/x86_64/alpine-virt-3.14.0-x86_64.iso" + boottype: "uefi" + imagetype: "linux" + hotresize: False + image_username: "test" + image_password: "p@ssword" + usernameDL: "testDL" + passwordDL: "p@sswordDL" + architecture: "X86_64" + drivers: "KVM_X86" + + delegate_to: localhost + register: simple_vm diff --git a/examples/create-virtual-osimage.yaml b/examples/create-virtual-osimage.yaml new file mode 100644 index 0000000..015c21e --- /dev/null +++ b/examples/create-virtual-osimage.yaml @@ -0,0 +1,15 @@ +--- +# +# DECORT osimage module example +# +- hosts: localhost + tasks: + - name: create_virtual_osimage + decort_osimage: + authenticator: oauth2 + controller_url: "https://ds1.digitalenergy.online" + image_name: "alpine_linux_3.14.0" + virt_name: "alpine_last" + delegate_to: localhost + register: osimage + diff --git a/examples/get-osimage.yaml b/examples/get-osimage.yaml new file mode 100644 index 0000000..3e61612 --- /dev/null +++ b/examples/get-osimage.yaml @@ -0,0 +1,14 @@ +--- +# +# DECORT osimage module example +# +- hosts: localhost + tasks: + - name: get_osimage + decort_osimage: + authenticator: oauth2 + controller_url: "https://ds1.digitalenergy.online" + image_name: "alpine_linux_3.14.0" + account_Id: 79349 + delegate_to: localhost + register: simple_vm diff --git a/examples/rename-osimage.yaml b/examples/rename-osimage.yaml new file mode 100644 index 0000000..eb13642 --- /dev/null +++ b/examples/rename-osimage.yaml @@ -0,0 +1,15 @@ +--- +# +# DECORT osimage module example +# +- hosts: localhost + tasks: + - name: rename_osimage + decort_osimage: + authenticator: oauth2 + controller_url: "https://ds1.digitalenergy.online" + image_name: "alpine_linux_3.14.0v2.0" + image_id: 54321 + delegate_to: localhost + register: osimage +