{"id":13490092,"url":"https://github.com/manala/ansible-role-keepalived","last_synced_at":"2025-03-28T05:31:48.148Z","repository":{"id":81893549,"uuid":"61781738","full_name":"manala/ansible-role-keepalived","owner":"manala","description":"[READ-ONLY] Ansible role dealing with the setup of Keepalived","archived":true,"fork":false,"pushed_at":"2021-12-16T10:49:41.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-31T03:35:29.885Z","etag":null,"topics":["ansible","keepalived"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/manala/keepalived/","language":"Makefile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manala.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-06-23T06:48:46.000Z","updated_at":"2023-01-28T04:42:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"44aaa845-6e50-403f-8288-6c2a63531902","html_url":"https://github.com/manala/ansible-role-keepalived","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manala%2Fansible-role-keepalived","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manala%2Fansible-role-keepalived/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manala%2Fansible-role-keepalived/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manala%2Fansible-role-keepalived/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manala","download_url":"https://codeload.github.com/manala/ansible-role-keepalived/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978200,"owners_count":20703675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","keepalived"],"created_at":"2024-07-31T19:00:40.663Z","updated_at":"2025-03-28T05:31:47.754Z","avatar_url":"https://github.com/manala.png","language":"Makefile","funding_links":[],"categories":["tools"],"sub_categories":[],"readme":"#######################################################################################################\n\n# :exclamation: DEPRECATION :exclamation:\n\n## This repository and the role associated are deprecated in favor of the [Manala Ansible Collection](https://galaxy.ansible.com/manala/roles)\n\n## You will find informations on its usage on the [collection repository](https://github.com/manala/ansible-roles)\n\n#######################################################################################################\n\n# Ansible Role: Keepalived [![Build Status](https://travis-ci.org/manala/ansible-role-keepalived.svg?branch=master)](https://travis-ci.org/manala/ansible-role-keepalived)\n\n:exclamation: [Report issues](https://github.com/manala/ansible-roles/issues) and [send Pull Requests](https://github.com/manala/ansible-roles/pulls) in the [main Ansible Role repository](https://github.com/manala/ansible-roles) :exclamation:\n\nThis role will deal with the setup and the configuration of [Keepalived](http://www.keepalived.org/).\n\nIt's part of the [Manala Ansible stack](http://www.manala.io) but can be used as a stand alone component.\n\n## Requirements\n\nThis role is made to work with the __manala__ keepalived debian package, available on the __manala__ debian repository. Please use the [**manala.apt**](https://galaxy.ansible.com/manala/apt/) role to handle it properly.\n\n```yaml\nmanala_apt_preferences:\n  - keepalived@manala\n```\n\n## Dependencies\n\nNone.\n\n## Installation\n\n### Ansible 2+\n\nUsing ansible galaxy cli:\n\n```bash\nansible-galaxy install manala.keepalived\n```\n\nUsing ansible galaxy requirements file:\n\n```yaml\n- src: manala.keepalived\n```\n\n## Role Handlers\n\n| Name                 | Type    | Description            |\n| -------------------- | ------- | ---------------------- |\n| `keepalived restart` | Service | Restart keepalived     |\n| `keepalived reload`  | Service | Reload keepalived      |\n\n## Role Variables\n\n| Name                                         | Default                           | Type         | Description                                       |\n| -------------------------------------------- | --------------------------------- | ------------ | ------------------------------------------------- |\n| `manala_keepalived_install_packages`         | ~                                 | Array        | Dependency packages to install directives         |\n| `manala_keepalived_install_packages_default` | ['keepalived']                    | Array        | Default dependency packages to install directives |\n| `manala_keepalived_config_file`              | '/etc/keepalived/keepalived.conf' | Array        | Configuration file path                           |\n| `manala_keepalived_config_template`          | 'config/_default.j2'              | String       | Configuration base template path                  |\n| `manala_keepalived_config`                   | ~                                 | Array/String | Configuration directives                          |\n| `manala_keepalived_environment_file`         | '/etc/default/keepalived'         | Array        | Environment file path                             |\n| `manala_keepalived_environment_template`     | 'environment/_default.j2'         | String       | Environment base template path                    |\n| `manala_keepalived_environment`              | ~                                 | Array/String | Environment directives                            |\n\n### Configuration example\n\nUse raw main config:\n```yaml\nmanala_keepalived_config: |\n  global_defs {\n      router_id LVS_DEVEL\n  }\n  vrrp_instance VI_1 {\n      virtual_router_id 50\n      interface eth0\n      state MASTER\n      priority 100\n      virtual_ipaddress {\n          192.168.200.11/24 dev eth0\n          192.168.200.12/24 dev eth0\n      }\n  }\n```\n\nUse custom template:\n```yaml\nmanala_keepalived_config_template: my_custom_keepalived.conf.j2\nmanala_keepalived_config:\n  foo: bar\n```\n\nUse dict's array parameters (deprecated):\n```yaml\nmanala_keepalived_config:\n  - global_defs:\n    - router_id: LVS_DEVEL\n  - vrrp_instance VI_1:\n    - virtual_router_id: 50\n    - interface: eth0\n    - state: MASTER\n    - priority: 100\n    - virtual_ipaddress:\n      - 192.168.200.11/24 dev eth0\n      - 192.168.200.12/24 dev eth0\n```\n\nStart keepalived daemon with extra parameters...\n\n...using debian default environment template (recommended):\n```yaml\nmanala_keepalived_environment_template: environment/debian/keepalived.j2\nmanala_keepalived_environment:\n  DAEMON_ARGS: --log-console --log-detail\n  FOO: bar\n```\n\n...using dict parameters:\n```yaml\nmanala_keepalived_environment:\n  DAEMON_ARGS: --log-console --log-detail\n  FOO: bar\n```\n\n...using raw main config:\n```yaml\nmanala_keepalived_environment: |\n  DAEMON_ARGS=\"--log-console --log-detail\"\n  FOO=\"bar\"\n```\n\n...using dict's array parameters (deprecated):\n```yaml\nmanala_keepalived_environment:\n  - DAEMON_ARGS: --log-console --log-detail\n  - FOO: bar\n```\n\n## Example playbook\n\n```yaml\n- hosts: all\n  roles:\n    - role: manala.keepalived\n```\n\n# Licence\n\nMIT\n\n# Author information\n\nManala [**(http://www.manala.io/)**](http://www.manala.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanala%2Fansible-role-keepalived","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanala%2Fansible-role-keepalived","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanala%2Fansible-role-keepalived/lists"}