remove block storage attachment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
eb4759a7d6
commit
6dce72d18d
@ -1,7 +1,7 @@
|
||||
# xoxys.smb
|
||||
|
||||
[![Build Status](https://img.shields.io/drone/build/ansible/xoxys.smb?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.smb)
|
||||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](LICENSE)
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
||||
|
||||
Mount a list of Samba shares.
|
||||
|
||||
|
@ -6,7 +6,7 @@ galaxy_info:
|
||||
# @meta description: >
|
||||
# [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.smb)
|
||||
# [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.smb?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.smb)
|
||||
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](LICENSE)
|
||||
# [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
||||
#
|
||||
# Mount a list of Samba shares.
|
||||
# @end
|
||||
|
@ -49,24 +49,6 @@
|
||||
retries: 300
|
||||
loop: "{{ server.results }}"
|
||||
|
||||
- name: Create new block storage
|
||||
digital_ocean_block_storage:
|
||||
state: present
|
||||
command: create
|
||||
region: "{{ item.data.droplet.region.slug }}"
|
||||
block_size: 2
|
||||
volume_name: "{{ item.data.droplet.name }}-blk"
|
||||
loop: "{{ digitalocean_jobs.results }}"
|
||||
|
||||
- name: Attach block storage to instance
|
||||
digital_ocean_block_storage:
|
||||
state: present
|
||||
command: attach
|
||||
volume_name: "{{ item.data.droplet.name }}-blk"
|
||||
region: "{{ item.data.droplet.region.slug }}"
|
||||
droplet_id: "{{ item.data.droplet.id }}"
|
||||
loop: "{{ digitalocean_jobs.results }}"
|
||||
|
||||
# Mandatory configuration for Molecule to function.
|
||||
|
||||
- name: Populate instance config dict
|
||||
|
@ -16,15 +16,6 @@
|
||||
instance_conf: {}
|
||||
skip_instances: true
|
||||
|
||||
- name: Detach block storage from instance
|
||||
digital_ocean_block_storage:
|
||||
state: absent
|
||||
command: attach
|
||||
volume_name: "{{ item.instance }}-blk"
|
||||
region: "{{ item.droplet_region }}"
|
||||
droplet_id: "{{ item.droplet_id }}"
|
||||
loop: "{{ instance_conf | flatten(levels=1) }}"
|
||||
|
||||
- name: Destroy molecule instance(s)
|
||||
digital_ocean_droplet:
|
||||
name: "{{ item.instance }}"
|
||||
@ -44,14 +35,6 @@
|
||||
retries: 300
|
||||
loop: "{{ server.results }}"
|
||||
|
||||
- name: Delete block storage
|
||||
digital_ocean_block_storage:
|
||||
state: absent
|
||||
command: create
|
||||
region: "{{ item.droplet_region }}"
|
||||
volume_name: "{{ item.instance }}-blk"
|
||||
loop: "{{ instance_conf | flatten(levels=1) }}"
|
||||
|
||||
- name: Delete remote keypair
|
||||
digital_ocean_sshkey:
|
||||
fingerprint: "{{ item.ssh_key_id }}"
|
||||
|
@ -49,24 +49,6 @@
|
||||
retries: 300
|
||||
loop: "{{ server.results }}"
|
||||
|
||||
- name: Create new block storage
|
||||
digital_ocean_block_storage:
|
||||
state: present
|
||||
command: create
|
||||
region: "{{ item.data.droplet.region.slug }}"
|
||||
block_size: 2
|
||||
volume_name: "{{ item.data.droplet.name }}-blk"
|
||||
loop: "{{ digitalocean_jobs.results }}"
|
||||
|
||||
- name: Attach block storage to instance
|
||||
digital_ocean_block_storage:
|
||||
state: present
|
||||
command: attach
|
||||
volume_name: "{{ item.data.droplet.name }}-blk"
|
||||
region: "{{ item.data.droplet.region.slug }}"
|
||||
droplet_id: "{{ item.data.droplet.id }}"
|
||||
loop: "{{ digitalocean_jobs.results }}"
|
||||
|
||||
# Mandatory configuration for Molecule to function.
|
||||
|
||||
- name: Populate instance config dict
|
||||
|
@ -16,15 +16,6 @@
|
||||
instance_conf: {}
|
||||
skip_instances: true
|
||||
|
||||
- name: Detach block storage from instance
|
||||
digital_ocean_block_storage:
|
||||
state: absent
|
||||
command: attach
|
||||
volume_name: "{{ item.instance }}-blk"
|
||||
region: "{{ item.droplet_region }}"
|
||||
droplet_id: "{{ item.droplet_id }}"
|
||||
loop: "{{ instance_conf | flatten(levels=1) }}"
|
||||
|
||||
- name: Destroy molecule instance(s)
|
||||
digital_ocean_droplet:
|
||||
name: "{{ item.instance }}"
|
||||
@ -44,14 +35,6 @@
|
||||
retries: 300
|
||||
loop: "{{ server.results }}"
|
||||
|
||||
- name: Delete block storage
|
||||
digital_ocean_block_storage:
|
||||
state: absent
|
||||
command: create
|
||||
region: "{{ item.droplet_region }}"
|
||||
volume_name: "{{ item.instance }}-blk"
|
||||
loop: "{{ instance_conf | flatten(levels=1) }}"
|
||||
|
||||
- name: Delete remote keypair
|
||||
digital_ocean_sshkey:
|
||||
fingerprint: "{{ item.ssh_key_id }}"
|
||||
|
Loading…
Reference in New Issue
Block a user