【发布时间】:2017-05-09 01:05:53
【问题描述】:
我正在考虑使用 Ansible 来管理我的 AWS 基础设施;我有(2 台具有自动缩放功能的服务器)。
我将使用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
我想知道使用这项技术是否会是蓝绿部署,或者服务器将同时重新启动,从而产生停机时间
【问题讨论】:
标签: amazon-web-services amazon-s3 amazon-ec2 ansible