Skip to content
Snippets Groups Projects
Commit 7ad55231 authored by Vijay Katam's avatar Vijay Katam
Browse files

restrict rpm query to redhat

parent 5efda3ed
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -24,7 +24,7 @@ ExecStart={{ docker_bin_dir }}/docker daemon \
$DOCKER_NETWORK_OPTIONS \
$DOCKER_DNS_OPTIONS \
$INSECURE_REGISTRY
{% if systemd_version.stdout|int >= 226 %}
{% if ansible_os_family == "RedHat" and systemd_version.stdout|int >= 226 %}
TasksMax=infinity
{% endif %}
LimitNOFILE=1048576
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment