commit | e2fc42a032c5a53b96be726576a8e64a1f1d446d | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@opennetworking.org> | Wed Jan 31 18:38:58 2018 -0700 |
committer | Zack Williams <zdw@opennetworking.org> | Wed Jan 31 18:38:58 2018 -0700 |
tree | a01da85056a6e1552254d26a3308b6d128b5ccb5 | |
parent | 5db5c6d842cbaa53809a405c2c3558a1ada2dda1 [diff] |
Fix `systemctl` invocation for ansible-lint Change-Id: I5e38626cbe27909ac24bbc2272718b48dbeb617b
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]