File: main.yml

package info (click to toggle)
python-openstacksdk 4.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,904 kB
  • sloc: python: 127,036; sh: 153; makefile: 23
file content (37 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- name: Create a test object file
  shell: mktemp
  register: tmp_file

- name: Create container
  os_object:
     cloud: "{{ cloud }}"
     state: present
     container: ansible_container
     container_access: private

- name: Put object
  os_object:
     cloud: "{{ cloud }}"
     state: present
     name: ansible_object
     filename: "{{ tmp_file.stdout }}"
     container: ansible_container

- name: Delete object
  os_object:
     cloud: "{{ cloud }}"
     state: absent
     name: ansible_object
     container: ansible_container

- name: Delete container
  os_object:
     cloud: "{{ cloud }}"
     state: absent
     container: ansible_container

- name: Delete test object file
  file:
     name: "{{ tmp_file.stdout }}"
     state: absent