title: Ansible: Change playbooks location
body: <p>I have all playbooks in /etc/ansible/playbooks and I want to execute them anywhere on the pc</p>
  
  <p>I tried to configure playbook_dir variable in ansible.cfg</p>
  
  <pre><code>[defaults]
  playbook_dir = /etc/ansible/playbooks/
  </code></pre>
  
  <p>and tried to put ANSIBLE_PLAYBOOK_DIR variable in ~/.bashrc</p>
  
  <pre><code>export ANSIBLE_PLAYBOOK_DIR=/etc/ansible/playbooks/
  </code></pre>
  
  <p>but I only got the same error in both cases:</p>
  
  <pre><code>nor@nor:~$ ansible-playbook test3.yaml
  ERROR! the playbook: test3.yaml could not be found
  </code></pre>
  
  <p>This is my ansible version:</p>
  
  <pre><code>ansible 2.9.7
    config file = /etc/ansible/ansible.cfg
    configured module search path = ['/home/nor/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/local/lib/python3.7/dist-packages/ansible
    executable location = /usr/local/bin/ansible
    python version = 3.7.3 (default, Oct  7 2019, 12:56:13) [GCC 8.3.0]
  </code></pre>
  
  <p>Does anyone know the problem and how to solve it?</p>