我在考慮使用Ansible來管理我的AWS基礎架構;我有(2臺服務器自動縮放)。使用Ansible在AWS中進行藍綠色部署
我將部署使用ansible-playbook -i hosts deploy-plats.yml --limit spring-boot
這裏我deploy-plats.yml
---
- hosts: bastion:apache:spring-boot
vars:
remote_user: ec2-user
tasks:
- name: Copies the .jar to the Spring Boot boxes
copy: dest=~/ src=~/dev/plats/target/plats.jar mode=0777
- name: Restarts the plats service
service: name=plats state=restarted enabled=yes
become: yes
become_user: root
,我想知道如果採用此技術將是一個藍綠色的部署或服務器將同時重新啓動,產生停機時間