roles/common: Remove ansible_os_family checks

We're only supporting Debian family now so there's no point to check
this variable now.
This commit is contained in:
Alan Orth 2017-11-05 01:19:28 +02:00
parent e43d8924e8
commit 547d808aea
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 2 additions and 2 deletions

View File

@ -14,12 +14,12 @@
- name: Uninstall ntp on modern Ubuntu/Debian
apt: name=ntp state=absent update_cache=yes
when: ansible_os_family == 'Debian' and ansible_service_mgr == 'systemd'
when: ansible_service_mgr == 'systemd'
tags: packages
- name: Install ntp on old Ubuntu/Debian
apt: name=ntp state=present update_cache=yes
when: ansible_os_family == 'Debian' and ansible_service_mgr != 'systemd'
when: and ansible_service_mgr != 'systemd'
tags: packages
# vim: set ts=2 sw=2: