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: all:
children: children:
BareMetal: # 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:
# hosts: # hosts:
# host1: # host1:
# ansible_host: 192.168.1.79 # ansible_host: 192.168.1.79
# ansible_user: jeet # ansible_user: jeet
# ansible_ssh_private_key_file: ~/.ssh/id_ed25519 # ansible_ssh_private_key_file: ~/.ssh/id_ed25519
# compose_file_paths: # host2:
# - /path/to/docker-compose.yml # 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: # host2:
# ansible_host: <ip> # ansible_host: <ip>
# ansible_user: <user> # ansible_user: <user>
@@ -2,12 +2,12 @@
hosts: Docker hosts: Docker
tasks: tasks:
- name: Clone repo - 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 - name: Start container using Docker Compose
ansible.builtin.command: ansible.builtin.command:
cmd: docker compose up -d cmd: docker compose up -d
chdir: ~/docker chdir: ~/OCI_Build/docker
ignore_errors: yes ignore_errors: yes
- name: Pause for 30 seconds to allow containers to stabilize - name: Pause for 30 seconds to allow containers to stabilize