Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Add check for ansible version #26

Merged
merged 2 commits into from
Oct 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
# Upload ssh-key
- { role: ssh-key, when: create_key == "yes" }
# Create VPC and subnets in multiple AZ
- pre-install-check
- cloudformation-infra
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---

- name: Get current Ansible version on local host
command: command ansible --version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

register: local_ansible_version
- assert:
that:
- "'ansible 2.2' in local_ansible_version.stdout"
msg: "You need Ansible version 2.2.0+"