Add become
This commit is contained in:
+4
-3
@@ -1,15 +1,16 @@
|
||||
- name: Clean OCI Stack
|
||||
hosts: Docker
|
||||
become: yes
|
||||
tasks:
|
||||
|
||||
- name: Stop containers using Docker Compose
|
||||
ansible.builtin.command:
|
||||
cmd: docker compose down
|
||||
chdir: ~/OCI_Build/docker
|
||||
chdir: /home/jeet/OCI_Build/docker
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Remove build folder
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: ~/OCI_Build/
|
||||
force: true
|
||||
path: /home/jeet/OCI_Build/
|
||||
force: true
|
||||
Reference in New Issue
Block a user