Update deployment
This commit is contained in:
+13
-13
@@ -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
|
||||
Reference in New Issue
Block a user