Removed legacy Digital Ocean tasks (#51786)
This commit is contained in:
parent
9b17346d1e
commit
274f6e4818
3 changed files with 0 additions and 67 deletions
|
@ -1,38 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Make sure that the Floating IP is absent"
|
|
||||||
digital_ocean_floating_ip:
|
|
||||||
state: absent
|
|
||||||
ip: "8.8.8.8"
|
|
||||||
oauth_token: "{{ digitalocean_oauth_token }}"
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Verify that the Floating IP didn't change
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- "not result.changed"
|
|
||||||
|
|
||||||
- name: "Create a Floating IP"
|
|
||||||
digital_ocean_floating_ip:
|
|
||||||
state: present
|
|
||||||
region: "lon1"
|
|
||||||
oauth_token: "{{ digitalocean_oauth_token }}"
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Verify that a Floating IP was created
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- "result.changed"
|
|
||||||
|
|
||||||
- name: "Destroy Floating IP"
|
|
||||||
digital_ocean_floating_ip:
|
|
||||||
state: absent
|
|
||||||
ip: "{{ result.data.floating_ip.ip }}"
|
|
||||||
region: "lon1"
|
|
||||||
oauth_token: "{{ digitalocean_oauth_token }}"
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Verify that a Floating IP was deleted
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- " result.changed"
|
|
|
@ -1,4 +0,0 @@
|
||||||
- name: SSH Key module tests
|
|
||||||
include: tasks/sshkey.yml
|
|
||||||
- name: Floating IPs module tests
|
|
||||||
include: tasks/floating_ip.yml
|
|
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: Create ssh key
|
|
||||||
digital_ocean_sshkey:
|
|
||||||
name: test-key1
|
|
||||||
ssh_pub_key: "{{ dummy_ssh_pub_key }}"
|
|
||||||
oauth_token: "{{ digitalocean_oauth_token }}"
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Verify that SSH key was created
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- "result.changed"
|
|
||||||
|
|
||||||
- name: "Delete ssh key"
|
|
||||||
digital_ocean_sshkey:
|
|
||||||
state: "absent"
|
|
||||||
fingerprint: "{{ result.data.ssh_key.fingerprint }}"
|
|
||||||
oauth_token: "{{ digitalocean_oauth_token }}"
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Verify that SSH key was deleted
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- "result.changed"
|
|
Loading…
Reference in a new issue