diff --git a/README.md b/README.md index 7f45270..2cb193b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## keepalived -[![Build Status](https://travis-ci.org/Oefenweb/ansible-keepalived.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-keepalived) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-keepalived-blue.svg)](https://galaxy.ansible.com/list#/roles/3349) +[![Build Status](https://travis-ci.org/Oefenweb/ansible-keepalived.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-keepalived) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-keepalived-blue.svg)](https://galaxy.ansible.com/tersmitten/keepalived) Set up the latest or a specific version of [Keepalived](http://www.keepalived.org/) in Ubuntu systems. @@ -14,7 +14,7 @@ Set up the latest or a specific version of [Keepalived](http://www.keepalived.or #### Variables -* `keepalived_version` [default: `v1.2.24`]: Keepalived version to install +* `keepalived_version` [default: `v1.3.2`]: Keepalived version to install * `keepalived_install`: [default: `[]`]: Additional packages to install (e.g. `['libnl-3-dev', 'libnl-genl-3-dev', 'libnl-route-3-dev', 'libnfnetlink-dev']`) * `keepalived_configure_options`: [default: `[]`]: Options to pass to `./configure` diff --git a/defaults/main.yml b/defaults/main.yml index 3c92629..8283d52 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,6 @@ # defaults file for keepalived --- -keepalived_version: v1.2.24 +keepalived_version: v1.3.2 keepalived_install: [] keepalived_configure_options: [] keepalived_options: [] diff --git a/tasks/main.yml b/tasks/main.yml index 336c863..fb2a9c3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,7 +15,7 @@ - name: install dependencies apt: name: "{{ item }}" - state: latest + state: "{{ apt_install_state | default('latest') }}" update_cache: true cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" with_items: "{{ keepalived_dependencies }}" @@ -28,7 +28,7 @@ - name: install additional apt: name: "{{ item }}" - state: latest + state: "{{ apt_install_state | default('latest') }}" update_cache: true cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" with_items: "{{ keepalived_install }}"