Skip to content

Allow user to override HAProxy package name #81

Description

@benwebber

IUS offers HAProxy 1.6 and 1.7 as haproxy16u and haproxy17u, respectively.

include_vars could do something like:

- include_vars:
    # returns {"_haproxy_package_name": "haproxy"}
    - "{{ ansible_distribution }}.yml"

Then we can install HAProxy like so:

- package:
    name: "{{ haproxy_package_name | default(_haproxy_package_name) }}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions