Fixing old+new ansible hosts.

This commit is contained in:
Samuel Clay 2021-04-16 17:25:32 -04:00
parent 2c1de6bdca
commit 8974b0dd9a
4 changed files with 23 additions and 1 deletions

View file

@ -112,9 +112,12 @@ deploy_staging:
staging: deploy_staging
celery_stop:
- ansible-playbook ansible/deploy.yml -l task --tags stop
# Provision
firewall:
- ansible-playbook ansible/setup.yml -l db --tags firewall
- ansible-playbook ansible/all.yml -l db --tags firewall
oldfirewall:
- ANSIBLE_CONFIG=/srv/newsblur/ansible.old.cfg ansible-playbook ansible/all.yml -l db --tags firewall
# performance tests
perf-cli:

17
ansible/all.yml Normal file
View file

@ -0,0 +1,17 @@
# Use this playbook to run a tag on every server. Handy for firewalls.
---
- hosts: all
# strategy: free
vars_files:
- env_vars/base.yml
vars:
- update_apt_cache: yes
roles:
- {role: 'base', tags: 'base'}
- {role: 'docker', tags: 'docker'}
- {role: 'repo', tags: 'repo'}
- {role: 'dnsmasq', tags: 'dnsmasq'}
- {role: 'consul', tags: 'consul'}
- {role: 'consul-client', tags: 'consul'}
- {role: 'monitor', tags: 'monitor'}

1
ansible/playbooks/env_vars Symbolic link
View file

@ -0,0 +1 @@
../env_vars

View file

@ -0,0 +1 @@
../group_vars