Update Deploy and Clean
This commit is contained in:
+1
-8
@@ -12,13 +12,6 @@
|
|||||||
ansible.builtin.pause:
|
ansible.builtin.pause:
|
||||||
seconds: 30
|
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
|
- name: Remove build folder
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: sudo rm -rf OCI_Build/
|
cmd: rm -rf OCI_Build/
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
hosts: Docker
|
hosts: Docker
|
||||||
tasks:
|
tasks:
|
||||||
- name: Clone repo
|
- 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
|
- name: Start container using Docker Compose
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
Reference in New Issue
Block a user