Update Deploy and Clean

This commit is contained in:
madereddy
2023-12-11 14:57:49 -05:00
parent 83192aa5a0
commit f05e62cdc9
2 changed files with 3 additions and 9 deletions
+1 -8
View File
@@ -12,13 +12,6 @@
ansible.builtin.pause:
seconds: 30
- name: Check container status
ansible.builtin.shell: docker compose ps -q | xargs -n1 docker container inspect --format '{{ "{{" }} .State.Running {{ "}}" }}'
args:
chdir: ~/OCI_Build/docker
register: container_status
ignore_errors: yes
- name: Remove build folder
ansible.builtin.command:
cmd: sudo rm -rf OCI_Build/
cmd: rm -rf OCI_Build/
+2 -1
View File
@@ -2,7 +2,8 @@
hosts: Docker
tasks:
- name: Clone repo
command: git clone http://192.168.1.157:3000/jeet/OCI_Build.git
ansible.builtin.command:
cmd: git clone http://192.168.1.157:3000/jeet/OCI_Build.git
- name: Start container using Docker Compose
ansible.builtin.command: