mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Fixing old+new ansible hosts.
This commit is contained in:
parent
2c1de6bdca
commit
8974b0dd9a
4 changed files with 23 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -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
17
ansible/all.yml
Normal 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
1
ansible/playbooks/env_vars
Symbolic link
|
@ -0,0 +1 @@
|
|||
../env_vars
|
1
ansible/playbooks/group_vars
Symbolic link
1
ansible/playbooks/group_vars
Symbolic link
|
@ -0,0 +1 @@
|
|||
../group_vars
|
Loading…
Add table
Reference in a new issue