Skip to content

Commit

Permalink
fail on old and remove more includes
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshumate committed Oct 22, 2016
1 parent 6192fab commit 8f4e294
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@
# v1.0.5

- Remove unnecessary include

# v1.0.6

- Add fail on old distro versions
- Remove all distro specific includes
3 changes: 0 additions & 3 deletions tasks/CentOS.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
# File: tasks/CentOS.yml - CentOS tasks for Vault

- name: "Distribution specific variables"
include_vars: main.yml

- name: OS packages
yum: "name={{ item }} state=present"
with_items: "{{ vault_centos_os_packages }}"
Expand Down
3 changes: 0 additions & 3 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
# File: tasks/Debian.yml - Debian tasks for Vault

- name: "Distribution specific variables"
include_vars: main.yml

- name: OS packages
apt: "name={{ item }} state=present update_cache=yes"
with_items: "{{ vault_debian_os_packages }}"
Expand Down
3 changes: 0 additions & 3 deletions tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
# File: tasks/Red Hat.yml - Red Hat tasks for Vault

- name: "Distribution specific variables"
include_vars: main.yml

- name: OS packages
yum: "name={{ item }} state=present"
with_items: "{{ vault_redhat_os_packages }}"
Expand Down
3 changes: 0 additions & 3 deletions tasks/Ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
# File: tasks/Ubuntu.yml - Ubuntu tasks for Vault

- name: "Distribution specific variables"
include_vars: main.yml

- name: OS packages
apt: "name={{ item }} state=present update_cache=yes"
with_items: "{{ vault_ubuntu_os_packages }}"
Expand Down
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
---
# File: tasks/main.yml - Main tasks for Vault

- name: Fail if not a new release of Ubuntu
fail:
msg: "{{ ansible_distribution_version }} is not an acceptable version of Ubuntu for this role"
when: ansible_lsb.id|lower == "ubuntu" and ( ansible_distribution_version|version_compare(12.04, '<') or ansible_distribution_version|version_compare(12.10, '=') )

- name: Fail if not a new release of Debian
fail:
msg: "{{ ansible_distribution_version }} is not an acceptable version of Debian for this role"
when: ansible_lsb.id|lower == "debian" and ansible_distribution_version|version_compare(8.5, '<')

- name: Create cluster groupings
group_by: key=os_{{ ansible_os_family }}

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.5
v1.0.6

0 comments on commit 8f4e294

Please sign in to comment.