The `install_base` action is not idempotent
Summary
The install_base
action is not idempotent - it always restarts docker service.
Steps to reproduce
test.yml
:
---
- name: "install docker"
hosts: localhost
roles:
- role: "docker"
action: "install_base"
ansible-playbook -i inventory test.yml
ansible-playbook -i inventory test.yml
Expected behavior
Docker is installed on the first run, second one change nothing.
Actual behavior
Docker is installed and then restarted.
Relevant logs and/or screenshots
Nothing here.
Possible fixes
I think that configuration should be checked for changes and docker should be restarted only if installed/changed.