Skip to content

Commit

Permalink
Update ansible.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash-kumar01 authored Jan 22, 2022
1 parent 3990962 commit 0634120
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
become: true
tasks:
- name: delete old deployment
command: kubectl delete -f /opt/deployment.yml
command: kubectl delete -f /home/ubuntu/Deployment.yml
- name: delete old service
command: kubectl delete -f /opt/service.yml
command: kubectl delete -f /home/ubuntu/Service.yml
- name: create new deployment
command: kubectl apply -f /opt/deployment.yml
command: kubectl apply -f /home/ubuntu/Deployment.yml
- name: create new service
command: kubectl apply -f /opt/service.yml
command: kubectl apply -f /home/ubuntu/Service.yml

0 comments on commit 0634120

Please sign in to comment.