CORE-POS/IS4C

View on GitHub
scripts/ansible/rollback.paths.yml

Summary

Maintainability
Test Coverage
# [Work-in-progress]
# Ansible playbook to revert to older, known good code from a git repo to lanes.
# Relevant portion of lanes' file systems must be accessible
# via network share.
#
# To run:
#   ansible-playbook -i localhost, -c local rollback.lanes.yml
#
---
- hosts: "localhost"
  
  tasks:
    - include_vars: lanes.paths.yml 
    - include_vars: versions.yml 
    - name: Deploy latest version to path(s)
      git: repo={{remote}} dest={{item}} version={{rollback}} force=yes depth=1
      with_items:  lanes