~hristoast/modding-openmw.com

a8ce7ab1ff34adfef1971f094b16e38d4b2e2104 — Hristos N. Triantafillou 26 days ago 996001e 3.21
Use the new playbook
1 files changed, 7 insertions(+), 8 deletions(-)

M Makefile
M Makefile => Makefile +7 -8
@@ 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" \