radify / radiian

Radiian creates Ansible provisioning files for immutable infrastructure on AWS
https://www.npmjs.com/package/radiian
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

need to refresh cache twice #72

Closed gavD closed 8 years ago

gavD commented 8 years ago
#!/bin/bash
...
# Ensure the app's cache is up to date
inventory/ec2.py --refresh-cache

echo 'Now terminate any instances with tag "old"'
ansible-playbook destroy-old-nodes.yaml --limit tag_old_whatever_True || true

Without that extra refresh cache the old nodes don't get removed