--- - name: Restart scaler service docker_compose: project_src: "{{ scaler_service_directory }}" pull: yes remove_orphans: yes stopped: "{{ inst.service_stopped | default(droneci_autoscaler_service_stopped) }}" restarted: "{{ not inst.service_stopped | default(droneci_autoscaler_service_stopped) }}" listen: __droneci_autoscaler_restart become: True become_user: root