ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
818 stars 1.5k forks source link

Haproxy: Allow passing multiple backends #3594

Open jameswilliams1 opened 2 years ago

jameswilliams1 commented 2 years ago

Summary

It's possible to either not pass a backend pool (and use all available) or pass only a single backend, but not pass a specific list of backends. Looking at the code it already works with a list, but the module expects a string as user input (and makes a list of one). Ideally if the input is type list it should pass this through directly so users can specify a group of backends rather than resorting to looping manually.

Issue Type

Feature Idea

Component Name

haproxy

Additional Information

- name: Set the server in 'www' and 'ww2' backend pool to drain mode
  community.general.haproxy:
    state: drain
    host: '{{ inventory_hostname }}'
    socket: /var/run/haproxy.sock
    backend:
      - www
      - ww2

Code of Conduct

ansibullbot commented 2 years ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 2 years ago

cc @Normo @ravibhure click here for bot help

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help