Skip to content

Commit

Permalink
Feat/connect host volume (#4)
Browse files Browse the repository at this point in the history
* Add feature to connect volumes to hostgroups

* Bump collection version
  • Loading branch information
iblackman authored Feb 27, 2020
1 parent dafc530 commit 7696252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
collections:
- name: purestorage.flasharray
version: 1.1.9
version: 1.1.10
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
host: "{{ item.hosts | json_query('[].name') or omit }}"
hostgroup: "{{ item.name }}"
state: "{{ item.state | default('present') }}"
volume: "{{ item.volumes | default(omit) }}"
volume: "{{ item.connections[array_info.purefa_info.default.array_name] | default(omit) }}"
fa_url: "{{ purefa_url }}"
api_token: "{{ purefa_api_token }}"
loop: "{{ purefa_hostgroups }}"
Expand Down

0 comments on commit 7696252

Please sign in to comment.