commit | 58ace17f5cd8f6e52dc3213ff2f7de840f57f355 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@opennetworking.org> | Wed Jan 31 18:38:58 2018 -0700 |
committer | Andy Bavier <andy@opennetworking.org> | Fri Mar 30 19:40:27 2018 +0000 |
tree | e3819ed5e20dc934d63332fda2dab71c1e09ce8c | |
parent | ccb8ae6d2d49c651fb3958ea72467fe7a785bb9e [diff] |
Fix `systemctl` invocation for ansible-lint Change-Id: I5e38626cbe27909ac24bbc2272718b48dbeb617b (cherry picked from commit e2fc42a032c5a53b96be726576a8e64a1f1d446d)
diff --git a/ansible/roles/docker/tasks/centos.yml b/ansible/roles/docker/tasks/centos.yml index 2be601b..317cc54 100644 --- a/ansible/roles/docker/tasks/centos.yml +++ b/ansible/roles/docker/tasks/centos.yml
@@ -28,7 +28,8 @@ tags: [docker] - name: CentOS Daemon is reloaded - command: systemctl daemon-reload + systemd: + daemon_reload: yes changed_when: true tags: [docker]
diff --git a/ansible/roles/docker/tasks/debian.yml b/ansible/roles/docker/tasks/debian.yml index 0124407..36a8bca 100644 --- a/ansible/roles/docker/tasks/debian.yml +++ b/ansible/roles/docker/tasks/debian.yml
@@ -52,7 +52,8 @@ tags: [docker] - name: Debian Daemon is reloaded - command: systemctl daemon-reload + systemd: + daemon_reload: yes when: copy_result|changed and is_systemd is defined tags: [docker]