
This change adds a specific update task to all tasks that all the apt ansible module. This change was done to ensure that the cache is updated as expected when instructed to do so. The reason that the cache update is being removed from the grouping is because there is an upstream bug that is effecting the process by which the apt cache is updated when there is a package list to process within the same task. The work around to make this function as expected is to move the update into its own task without a package list. Upstream Ansible bug: - https://github.com/ansible/ansible-modules-core/issues/1497 Change-Id: Ic06d89a76d772c12888b4bc4bbf147be58b0c150 Related-Bug: 1464771
OpenStack Haproxy Server
- tags
-
openstack, galera, haproxy, cloud, ansible
- category
-
*nix
Role for the installation and setup of haproxy
- name: Install haproxy
hosts: haproxy_hosts
user: root
roles:
- { role: "haproxy_server", tags: [ "haproxy-server" ] }
vars:
haproxy_service_configs:
- service:
hap_service_name: group_name
hap_backend_nodes: "{{ groups['group_name'][0] }}"
hap_backup_nodes: "{{ groups['group_name'][1:] }}"
hap_port: 80
hap_balance_type: http
hap_backend_options:
- "forwardfor"
- "httpchk"
- "httplog"