Verify role for Ubuntu 20.04

This commit is contained in:
Fabian Koller
2020-12-28 12:21:10 +01:00
parent c9d90d8ae0
commit 39dc72b36d
2 changed files with 16 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
---
- name: verify operating system
fail:
msg: Sorry, only Debian supported at the moment.
when: ansible_distribution != 'Debian'
msg: Sorry, only Debian and Ubuntu supported at the moment.
when: not(ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')
- name: install base dependencies
apt: