From 0c06d0164d9d0b17bb5b9a4678380a704719abbf Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 14 Aug 2019 15:30:50 +0200 Subject: [PATCH] Added OS version check --- ansible/ispmail.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ansible/ispmail.yml b/ansible/ispmail.yml index c8a2717..8715e3a 100644 --- a/ansible/ispmail.yml +++ b/ansible/ispmail.yml @@ -1,8 +1,18 @@ --- -# Requires Ansible >= 1.9 +# Check that this system is Debian Buster. +# Other Debian derivates may work but are untested. + +- hosts: all + tasks: + - name: "Checking operating system version" + assert: + that: ansible_distribution_release == 'buster' + fail_msg: 'This Ansible playbook is only supported on Debian Buster.' + success_msg: 'Debian Buster found - that makes me happy.' + - hosts: all roles: - - dumpvars + #- dumpvars - ispmail-packages - ispmail-certificate - ispmail-database