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 135676c commit 1c41d05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ansible.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
- hosts: all
become: true
tasks:
- name: delete previous Deployments
Command: kubectl delete -f /home/ubuntu/Deployment.yml
- name: delete previous service
command: kubectl delete -f /home/ubuntu/Service.yml
- name: create new deployment
command: kubectl apply -f /home/ubuntu/Deployment.yml
- name: create new service
command: kubectl apply -f /home/ubuntu/Service.yml
command: kubectl apply -f /home/ubuntu/Service.yml

0 comments on commit 1c41d05

Please sign in to comment.