Skip to content

Commit dac907a

Browse files
committed
Rolled back bucket_apply.yml and s3_account_apply.yml to previous version
1 parent fb00fb8 commit dac907a

2 files changed

Lines changed: 16 additions & 34 deletions

File tree

ansible-fb/playbooks/bucket_apply.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,13 @@
1111
versioning: "{{ versioning | default('absent') }}"
1212

1313
tasks:
14-
- name: Build base module parameters
15-
ansible.builtin.set_fact:
16-
_params:
17-
name: "{{ bucket_name }}"
18-
account: "{{ account_name }}"
19-
state: present
20-
fb_url: "{{ fb_url }}"
21-
api_token: "{{ api_token }}"
22-
23-
- name: Add versioning if enabled or suspended
24-
ansible.builtin.set_fact:
25-
_params: "{{ _params | combine({'versioning': versioning}) }}"
26-
when: versioning in ['enabled', 'suspended']
27-
28-
- name: Add quota and hard_limit if quota is specified
29-
ansible.builtin.set_fact:
30-
_params: "{{ _params | combine({'quota': quota, 'hard_limit': hard_limit | bool}) }}"
31-
when: quota is defined and quota not in [None, '', 'None', 'null']
32-
3314
- name: Ensure S3 bucket is present
34-
purestorage.flashblade.purefb_bucket: "{{ _params }}"
15+
purestorage.flashblade.purefb_bucket:
16+
name: "{{ bucket_name }}"
17+
account: "{{ account_name }}"
18+
state: present
19+
versioning: "{{ versioning }}"
20+
quota: "{{ quota | default(omit) }}"
21+
hard_limit: "{{ hard_limit | default(omit) }}"
22+
fb_url: "{{ fb_url }}"
23+
api_token: "{{ api_token }}"

ansible-fb/playbooks/s3_account_apply.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,11 @@
99
account_name: "{{ account_name | mandatory }}"
1010

1111
tasks:
12-
- name: Build base module parameters
13-
ansible.builtin.set_fact:
14-
_params:
15-
name: "{{ account_name }}"
16-
state: present
17-
fb_url: "{{ fb_url }}"
18-
api_token: "{{ api_token }}"
19-
20-
- name: Add quota and hard_limit if quota is specified
21-
ansible.builtin.set_fact:
22-
_params: "{{ _params | combine({'quota': quota, 'hard_limit': hard_limit | bool}) }}"
23-
when: quota is defined and quota not in [None, '', 'None', 'null']
24-
2512
- name: Ensure S3 object store account is present
26-
purestorage.flashblade.purefb_s3acc: "{{ _params }}"
13+
purestorage.flashblade.purefb_s3acc:
14+
name: "{{ account_name }}"
15+
state: present
16+
quota: "{{ quota | default(omit) }}"
17+
hard_limit: "{{ hard_limit | default(omit) }}"
18+
fb_url: "{{ fb_url }}"
19+
api_token: "{{ api_token }}"

0 commit comments

Comments
 (0)