Skip to content

Commit

Permalink
updated server configuration for auto deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavTinker committed Sep 30, 2022
1 parent 62ffc7f commit f4c3763
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified ansible.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion ansible_hosts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[prod]
primary ansible_host=api.dsctiet.tech ansible_host_user=dsc ansible_ssh_private_key=ansible
primary ansible_host=api.dsctiet.tech ansible_host_user=raghav ansible_ssh_private_key=ansible
8 changes: 4 additions & 4 deletions playbooks/redeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
tasks:
- name: Check if official website is cloned
stat:
path: /home/{{ lookup('env','USER') }}/officialWebsite
path: /home/{{ lookup('env','USER') }}/DSC/officialWebsite
register: official_website_cloned

- name: Check if officialWebsite is cloned
Expand All @@ -13,12 +13,12 @@

- name: Check if cert.pem copied
stat:
path: /home/{{ lookup('env','USER') }}/officialWebsite/cert.pem
path: /home/{{ lookup('env','USER') }}/DSC/officialWebsite/cert.pem
register: cert_pem_copied

- name: Check if key.pem copied
stat:
path: /home/{{ lookup('env','USER') }}/officialWebsite/privkey.pem
path: /home/{{ lookup('env','USER') }}/DSC/officialWebsite/privkey.pem
register: key_pem_copied

- name: Check if cert.pem and key.pem are copied
Expand All @@ -38,7 +38,7 @@

- name: Recontainerise
shell: |
cd /home/{{ lookup('env','USER') }}/officialWebsite
cd /home/{{ lookup('env','USER') }}/DSC/officialWebsite
git pull
docker-compose down
docker-compose up --build -d

0 comments on commit f4c3763

Please sign in to comment.