Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (24 sloc) 803 Bytes
---
# This playbook switch all routes:
# 1. point the "previous" route to the stack that was pointed by the "current" route,
# 2. point the "current" route to the stack that was pointed by the "next" route,
# 3. delete the stack that was pointed by the "previous" route,
# 4. patch the next route to the init stamp
- hosts: local
gather_facts: False
pre_tasks:
- import_tasks: tasks/check_configuration.yml
- import_tasks: tasks/check_apps_filter.yml
tasks:
- name: Display playbook name
debug: msg="==== Starting switch playbook ===="
tags: deploy
- import_tasks: tasks/set_vars.yml
- include_tasks: tasks/run_tasks_for_apps.yml
vars:
tasks:
- get_objects_for_app
- switch_routes
tags:
- route
- switch
You can’t perform that action at this time.