I was referred here by Pure Support regarding an issue
I was referred here by Pure Support regarding an issue with the "volume" function of the Ansible plugin for FlashArray
Case Number: CS0053963
Created: Jun 8, 2022 3:04 pm
Primary contact: Samuel Lay
Description: Here is my playbook: --- - name: Create a Snapshot of Pure volume hosts: all connection: local collections: - purestorage.flasharray gather_facts: no roles: - role: pure_create_clone
Here is the role: --- - name: Create Clone of Pure volume purestorage.flasharray.purefa_volume: target: "{{ target }}" name: "{{ volume_name }}" fa_url: "{{ ip }}" api_token: "{{ api_token }}" state: present When I run without size parameter, I get . . . fatal: [syn14p01st001]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "Size must be specified to create a new volume"} When I add the size parameter to the role: fatal: [syn14p01st001]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "parameters are mutually exclusive: size|target"} Command line: ansible-playbook -l syn14p01st001 -e "target=testvol0" -e "volume_name=clonotesvol00" _pure_create_clone.ym
The output from the plugin is mutually exclusive.