Skip to content

Commit

Permalink
Merge pull request #21 from Oefenweb/do-not-use-statelatest-use-state…
Browse files Browse the repository at this point in the history
…present

Do not use state=latest, use state=present
  • Loading branch information
tersmitten authored Jun 16, 2016
2 parents f9774c0 + 020b80f commit 01bf57a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
---
haproxy_version: 1.6

haproxy_dependencies:
- name: haproxy
state: latest
haproxy_install: []

# global section
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

- name: install dependencies
apt:
name: "{{ item }}"
state: latest
name: "{{ item.name }}"
state: "{{ item.state }}"
with_items: "{{ haproxy_dependencies }}"
tags:
- configuration
Expand Down
2 changes: 0 additions & 2 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ haproxy_versions_supported:
- 1.6

haproxy_ppa: "ppa:vbernat/haproxy-{{ haproxy_version }}"
haproxy_dependencies:
- haproxy

0 comments on commit 01bf57a

Please sign in to comment.