restrict rpm query to redhat

This commit is contained in:
Vijay Katam
2017-08-10 13:49:14 -07:00
parent 5efda3eda9
commit 7ad5523113
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
- name: get systemd version
command: rpm -q --qf '%{V}\n' systemd
register: systemd_version
when: not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] or is_atomic)
when: ansible_os_family == "RedHat" and not is_atomic
- name: Write docker.service systemd file
template: