Browse Source

Use the new playbook

tags/3.21
parent
commit
a8ce7ab1ff
Signed by: hristoast GPG Key ID: 5FC7664AD47AA1C5
1 changed files with 7 additions and 8 deletions
  1. +7
    -8
      Makefile

+ 7
- 8
Makefile View File

@@ -93,7 +93,7 @@ endif

django: host_check test
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='Momw Django App Setup' \
control_user=root \
django_db_migrate=true \
@@ -101,12 +101,11 @@ django: host_check test
django_start=true \
django_sync_code=true \
django_drop_db=true" \
--tags user,nginx,postgresql,memcached,django \
--vault-password-file ${CURDIR}/auth

django-migrate: host_check test
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='Run Momw Django db migrations' \
control_user=$(CONTROL_USER) \
db_migrate=true" \
@@ -114,7 +113,7 @@ django-migrate: host_check test

django-seeddb: host_check test
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='Momw Django database seed' \
control_user=root \
django_db_migrate=true \
@@ -123,7 +122,7 @@ django-seeddb: host_check test

django-resetdb: host_check test ## Reset the remote database with new data
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='Momw Django database reset' \
control_user=root \
django_db_migrate=true \
@@ -134,7 +133,7 @@ django-resetdb: host_check test ## Reset the remote database with new data

django-warmcache: host_check
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='Momw Django cache warm' \
control_user=root \
django_warmcache=true" \
@@ -142,7 +141,7 @@ django-warmcache: host_check

sync: host_check test
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='Momw Code Sync & Restart' \
control_user=root \
django_git=true \
@@ -151,7 +150,7 @@ sync: host_check test

memcached-restart: host_check
cd ../playbooks && \
ansible-playbook site.yml --extra-vars "control_hosts=$(HOSTS) \
ansible-playbook momw.yml --extra-vars "control_hosts=$(HOSTS) \
control_msg='memcached service restart' \
control_user=root \
memcached_restart=true" \


Loading…
Cancel
Save