<p dir="auto">Issue Type:<br>
Bug Report / Feature Idea</p>
<p dir="auto">Ansible Version:<br>
latest and v2.0.0-0.7.rc2</p>
<p dir="auto">Ansible Configuration:<br>
Nothing relevant</p>
<p dir="auto">Environment:<br>
OSX</p>
<p dir="auto">Summary:<br>
The warning about duplicate dict keys when parsing yaml is annoying for legitimate use cases and there should be a feature to disable it.</p>
<p dir="auto">Steps To Reproduce:<br>
I use YAML anchors/aliases extensively to make my giant var files much easier to read.  The following gist demonstrates what I'm doing and what I'm seeing:<br>
<a href="https://gist.github.com/mspiegle/ef4630cbdf8b18f93613">https://gist.github.com/mspiegle/ef4630cbdf8b18f93613</a></p>
<p dir="auto">The Ansible code responsible for this is:<br>
<a href="https://github.com/ansible/ansible/blob/v2.0.0-0.7.rc2/lib/ansible/parsing/yaml/constructor.py#L67">https://github.com/ansible/ansible/blob/v2.0.0-0.7.rc2/lib/ansible/parsing/yaml/constructor.py#L67</a></p>
<p dir="auto">Expected Results:<br>
I either expect Ansible to not bother me about this, or provide some way for me to disable this particular warning.</p>
<p dir="auto">Actual Results:<br>
I get lots of warnings about duplicate dict keys.  The duplicate dict keys are completely normal and expected in my use case.</p>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">sysctl</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

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

<p dir="auto">There should be an option in sysctl module to change/set the owner, group &amp; mode of the file updated/created. Currently it uses default owner/umask</p>