Update deployment

This commit is contained in:
madereddy
2023-12-11 14:25:52 -05:00
parent 4a17179306
commit 193394b065
2 changed files with 15 additions and 15 deletions
+13 -13
View File
@@ -1,23 +1,23 @@
all:
children:
BareMetal:
hosts:
host1:
ansible_host: 192.168.1.79
ansible_user: jeet
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
# host2:
# ansible_host: <ip>
# ansible_user: <user>
# ansible_ssh_private_key_file: ~/.ssh/<private key>
# Docker:
# BareMetal:
# hosts:
# host1:
# ansible_host: 192.168.1.79
# ansible_user: jeet
# ansible_ssh_private_key_file: ~/.ssh/id_ed25519
# compose_file_paths:
# - /path/to/docker-compose.yml
# host2:
# ansible_host: <ip>
# ansible_user: <user>
# ansible_ssh_private_key_file: ~/.ssh/<private key>
Docker:
hosts:
host1:
ansible_host: 192.168.1.79
ansible_user: jeet
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
compose_file_paths:
- /path/to/docker-compose.yml
# host2:
# ansible_host: <ip>
# ansible_user: <user>
@@ -2,12 +2,12 @@
hosts: Docker
tasks:
- name: Clone repo
command: wget http://192.168.1.157:3000/jeet/OCI_Build.git
command: git clone http://192.168.1.157:3000/jeet/OCI_Build.git
- name: Start container using Docker Compose
ansible.builtin.command:
cmd: docker compose up -d
chdir: ~/docker
chdir: ~/OCI_Build/docker
ignore_errors: yes
- name: Pause for 30 seconds to allow containers to stabilize