From 9162cbf71ef54749320492bb1cd70a5398f04c5e Mon Sep 17 00:00:00 2001 From: Feanil Patel <feanil@edx.org> Date: Thu, 16 Jun 2016 16:28:59 -0700 Subject: [PATCH] Add a role path so that it works from the small_deployment directory as well. --- playbooks/ansible.cfg | 4 ++-- playbooks/roles/edxlocal/tasks/main.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/ansible.cfg b/playbooks/ansible.cfg index 38e4ab0..efb1e96 100644 --- a/playbooks/ansible.cfg +++ b/playbooks/ansible.cfg @@ -6,5 +6,5 @@ jinja2_extensions=jinja2.ext.do host_key_checking = False -roles_path=../../ansible-roles/roles:../../ansible-private/roles:../../ansible-roles/ -ansible_managed=This file is created and updated by ansible, edit at your peril \ No newline at end of file +roles_path=../../ansible-roles/roles:../../ansible-private/roles:../../ansible-roles/:../roles +ansible_managed=This file is created and updated by ansible, edit at your peril diff --git a/playbooks/roles/edxlocal/tasks/main.yml b/playbooks/roles/edxlocal/tasks/main.yml index 9d5bed6..e730f72 100644 --- a/playbooks/roles/edxlocal/tasks/main.yml +++ b/playbooks/roles/edxlocal/tasks/main.yml @@ -20,6 +20,7 @@ mysql_user: name: "{{ item.user }}" password: "{{ item.pass }}" + host: "{{ item.host }}" priv: "{{ item.db }}.*:ALL" append_privs: yes when: item.db != None and item.db != '' @@ -29,6 +30,7 @@ mysql_user: name: "{{ COMMON_MYSQL_MIGRATE_USER }}" password: "{{ COMMON_MYSQL_MIGRATE_PASS }}" + host: "{{ item.host }}" priv: "{{ item }}.*:ALL" append_privs: yes when: item != None and item != '' -- libgit2 0.26.0