Skip to content

Commit d43e66e

Browse files
author
Bryan Kendall
committed
remove sudo for become
1 parent e4ca230 commit d43e66e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • ansible/roles/container_start/handlers

ansible/roles/container_start/handlers/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222

2323
- name: stop old containers
2424
tags: deploy
25-
command: sudo docker stop --time={{ stop_time }} {{ item }}
25+
become: yes
26+
command: docker stop --time={{ stop_time }} {{ item }}
2627
with_items: "{{ old_containers_ids.stdout_lines }}"

0 commit comments

Comments
 (0)