<p dir="auto">Hi,</p>
<p dir="auto">After some googling and asking on IRC, there doesn't seem to be a global defaults variable file where you can set things like accelerate and gather_facts.</p>
<p dir="auto">group_vars/all doesn't seem to work for variables at this level.</p>
<p dir="auto">This means that for a big playbook with many plays you have to explicitly set them for each play, this is probably suboptimal ?</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<p dir="auto">No configurations changed.</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Ansible does not resolve the custom modules which are in form of folders in local library folder.<br>
However it resolve the modules if configured in library parameter ansible.cfg .<br>
Its mentioned that .</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<ol dir="auto">
<li>write a python script for custom module .</li>
<li>create the directory for custom module.</li>
<li>create a directory named library and copy the custom module into it.</li>
<li>Try running the custom module with a playbook at same directory level.</li>
</ol>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">expected result : playbook runs the custom module .</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">actual result : syntax error ( at the point where the custom module is used . )</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: &quot;schema check for given topology file&quot;
  ^ here


The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:
"><pre class="notranslate"><code class="notranslate">ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: "schema check for given topology file"
  ^ here


The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

</code></pre></div>