mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-31 17:19:17 -03:30
Remove systemd version + ostree check for docker TasksMax (#11493)
systemd ignores unknown keys (with a warning) so version checking is not necessary. There is no rationale for excluding it from ostree systems either.
This commit is contained in:
@@ -13,16 +13,6 @@
|
||||
notify: Restart docker
|
||||
when: http_proxy is defined or https_proxy is defined
|
||||
|
||||
- name: Get systemd version
|
||||
# noqa command-instead-of-module - systemctl is called intentionally here
|
||||
shell: set -o pipefail && systemctl --version | head -n 1 | cut -d " " -f 2
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: systemd_version
|
||||
when: not is_ostree
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
|
||||
- name: Write docker.service systemd file
|
||||
template:
|
||||
src: docker.service.j2
|
||||
|
||||
Reference in New Issue
Block a user