From 91d9f4d78ff586272bdb6b208f05e5f920929626 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 7 Oct 2019 22:37:50 +0200 Subject: [PATCH] Start with copy the role from toolbox repo --- defaults/main.yml | 2 ++ tasks/main.yml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 defaults/main.yml create mode 100644 tasks/main.yml diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..a4ed9b7 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +check_ansible_version: 2.8.5 diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..7491e6c --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: "check if ansible version is above {{ check_ansible_version }}" + assert: + that: "ansible_version.full is version_compare(check_ansible_version, '>=')" + msg: > + "You must update Ansible to at least 2.8 to use this version of the toolbox openstack playbook."