1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

Allow the creation of servers with enabled backups (#16)

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
This commit is contained in:
Lukas Kämmerling 2020-07-13 11:52:14 +02:00 committed by GitHub
parent c2c6065ca3
commit 64c99d9759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

View file

@ -563,3 +563,29 @@
assert:
that:
- result is success
- name: test create server with enabled backups
hcloud_server:
name: "{{ hcloud_server_name }}"
server_type: cpx11
backups: true
image: "ubuntu-18.04"
ssh_keys:
- ci@ansible.hetzner.cloud
state: present
register: result
- name: verify enable backups
assert:
that:
- result is changed
- result.hcloud_server.backup_window != ""
- name: test create server with enabled backups
hcloud_server:
name: "{{ hcloud_server_name }}"
state: absent
register: result
- name: verify cleanup
assert:
that:
- result is success