1 line
No EOL
98 KiB
XML
1 line
No EOL
98 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><category term="ansible" label="r/ansible"/><updated>2023-01-24T03:29:10+00:00</updated><icon>https://www.redditstatic.com/icon.png/</icon><id>/r/ansible.rss</id><link rel="self" href="https://www.reddit.com/r/ansible.rss" type="application/atom+xml" /><link rel="alternate" href="https://www.reddit.com/r/ansible" type="text/html" /><subtitle>Automation for the People! A Subreddit dedicated to fostering communication in the Ansible Community, includes Ansible, AWX, Ansible Tower, Ansible Galaxy, ansible-lint, Molecule, etc.</subtitle><title>Ansible - Simple IT Automation</title><entry><author><name>/u/cybette</name><uri>https://www.reddit.com/user/cybette</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p><strong>The Bullhorn</strong> is a Newsletter for the Ansible Developer Community</p> <p>Subscribe --&gt; <a href="http://eepurl.com/gZmiEP">here</a> &lt;--</p> <p>If you have anything to share about what you’ve been up to with Ansible lately, at any time, simply hop into <a href="https://matrix.to/#/#social:ansible.com">#social:ansible.com</a> (the Ansible Social room on Matrix) and leave a message, tagging <a href="https://matrix.to/#/@newsbot:ansible.im">newsbot</a>. Your update will then be included in the next edition of the Bullhorn (pending editor approval, of course).</p> <p>Here&#39;s <a href="https://bit.ly/thebullhorn87">The Bullhorn #87</a> newsletter:</p> <h2>KEY DATES ⏱️</h2> <p><a href="https://matrix.to/#/@cybette:ansible.im">cybette</a> contributed</p> <blockquote> <ul> <li>2023-01-17: <a href="https://github.com/ansible/community/issues/678">DaWGs meeting</a>, 16:00 UTC</li> <li>2023-01-18: <a href="https://github.com/ansible/community/issues/679">Community WG meeting</a>, 19:00 UTC (propose topics <a href="https://github.com/ansible-community/community-topics/issues">here</a>)</li> <li>2023-01-19: <a href="https://github.com/ansible/community/wiki/News#the-bullhorn">Bullhorn #88 content deadline</a>, 18:00 UTC</li> <li>2023-01-30: <a href="https://groups.google.com/g/ansible-devel/c/IQ7VPnw9yS8">ETA for Ansible-Core 2.14.2 and 2.13.8 releases</a></li> <li>2023-01-31: <a href="https://groups.google.com/g/ansible-devel/c/htFjU7jZVYA">ETA for Ansible 7.2.0 release</a></li> <li>2023-02-08: <a href="https://hackmd.io/@ansible-community/cs202302-planning">Ansible Contributor Summit 2023.02</a></li> </ul> </blockquote> <h2>GENERAL NEWS UPDATES 🔈️</h2> <p>Happy New Year! Welcome to the first issue of The Bullhorn in 2023. We look forward to more exciting collaborations with the Ansible Community this year!</p> <p><a href="https://matrix.to/#/@cybette:ansible.im">cybette</a> said</p> <blockquote> <h3>Ansible Contributor Summit</h3> <p>Ansible Contributor Summit 2023.02 will be held on the third day of <a href="https://cfgmgmtcamp.eu/ghent2023/">CfgMgmtCamp 2023</a> on <strong>February 8, 2023</strong>, where participants will be able to join both in-person (in Ghent, Belgium) and online. Please take a look at the initial details <a href="https://hackmd.io/@ansible-community/cs202302-planning">here</a> and propose your topics!</p> </blockquote> <h2>COLLECTION UPDATES 🪄</h2> <p><a href="https://matrix.to/#/@russoz:matrix.org">russoz</a> contributed</p> <blockquote> <p>The modules <code>community.general.rax_*</code> are being marked for deprecation, as they all rely on the Python package <code>pyrax</code> that has been deprecated in 2017. If you are interested in keeping these modules in the collection, please volunteer to maintain them and hopefully move them away from the deprecated library. See more in <a href="https://github.com/ansible-collections/community.general/issues/5648">this issue</a>.</p> </blockquote> <p><a href="https://matrix.to/#/@mariolenz:matrix.org">mariolenz</a> shared</p> <blockquote> <p>The <a href="https://galaxy.ansible.com/dellemc/unity">dellemc.unity</a> collection has passed the <a href="https://github.com/ansible-collections/ansible-inclusion#readme">Collection inclusion procedure</a> and will be included in the next minor release of Ansible. Thanks to <a href="https://github.com/rajendraindukuri">rajendraindukuri</a>, <a href="https://github.com/anupamaloke">anupamaloke</a> and <a href="https://github.com/Jennifer-John">Jennifer-John</a> for the contribution!</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> said</p> <blockquote> <p>community.sops 1.6.0 (<a href="https://github.com/ansible-collections/community.sops/blob/main/CHANGELOG.rst#v1-6-0">changelog</a>) has been released with improvements for the <code>community.sops.install</code> role.</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> contributed</p> <blockquote> <p>community.general 6.2.0 (<a href="https://github.com/ansible-collections/community.general/blob/stable-6/CHANGELOG.rst#v6-2-0">changelog</a>) has been released. Please note that the Rackspace modules might get deprecated in version 7.0.0 and removed in version 9.0.0, since the Python library they are based on (<code>pyrax</code>) has been deprecated for a long time. If you are interested in maintaining and improving (potentially partially rewriting?) the modules to avoid removal, please <a href="https://github.com/ansible-collections/community.general/issues/5648">look at the GitHub issue discussing this</a>.</p> </blockquote> <p><a href="https://matrix.to/#/@resmo:libera.chat">resmo</a> shared</p> <blockquote> <p>vultr.cloud released v1.5.1, a bug fix release. See <a href="https://github.com/vultr/ansible-collection-vultr/blob/main/CHANGELOG.rst#v1-5-1">changelog</a> for details.</p> </blockquote> <p><a href="https://matrix.to/#/@markuman:matrix.org">markuman</a> said</p> <blockquote> <p>community.proxysql <a href="https://github.com/ansible-collections/community.proxysql/releases/tag/1.5.0">1.5.0</a> and <a href="https://github.com/ansible-collections/community.proxysql/releases/tag/1.5.1">1.5.1</a> have been released.</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> shared</p> <blockquote> <p>community.crypto 2.10.0 (<a href="https://github.com/ansible-collections/community.crypto/blob/main/CHANGELOG.rst#v2-10-0">changelog</a>) has been released with bugfixes and a bunch of new filter plugins which make it easier to obtain information from keys, certificates, and other objects.</p> </blockquote> <p><a href="https://matrix.to/#/@sdodsley:matrix.org">Simon Dodsley</a> shared</p> <blockquote> <p>purestorage.flasharray 1.16.0 (<a href="https://github.com/Pure-Storage-Ansible/FlashArray-Collection/blob/master/CHANGELOG.rst#v1-16-0">changelog</a>) has been released with bugfixes and a new module to support the array SNMP Agent.</p> </blockquote> <p><a href="https://matrix.to/#/@aevelina:ansible.im">abuzachis</a> said</p> <blockquote> <p><a href="https://github.com/ansible-collections/amazon.aws/tree/3.5.1">amazon.aws 3.5.1</a> has been released with a security fix (see <a href="https://github.com/ansible-collections/amazon.aws/blob/3.5.1/CHANGELOG.rst#v3-5-1">changelog</a> for details).</p> <p><a href="https://github.com/ansible-collections/amazon.aws/tree/4.4.0">amazon.aws 4.4.0</a> has been released with a number of security and minor bug fixes (see <a href="https://github.com/ansible-collections/amazon.aws/blob/4.4.0/CHANGELOG.rst#v4-4-0">changelog</a> for details).</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> contributed</p> <blockquote> <p>community.routeros 2.6.0 (<a href="https://github.com/ansible-collections/community.routeros/blob/main/CHANGELOG.rst#v2-6-0">changelog</a>) has been released with new features and bugfixes for the <code>community.routeros.api_modify</code> and <code>community.routeros.api_info</code> modules.</p> </blockquote> <h2>PROPOSALS - DISCUSS AND VOTE! 🗳️</h2> <p><a href="https://matrix.to/#/@mariolenz:matrix.org">mariolenz</a> said</p> <blockquote> <p>As mentioned in <a href="https://mailchi.mp/redhat/the-bullhorn-83">The Bullhorn #83</a>, we consider <code>community.fortios</code> an effectively unmaintained collection. Therefore, we&#39;ve opened a community / steering committee <a href="https://github.com/ansible-community/community-topics/discussions/179">vote</a> on removing it from the Ansible 9 community package.</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> said</p> <blockquote> <p>If you are still using the community.docker 1.x.y releases, you might be interested in the <a href="https://github.com/ansible-collections/community.docker/issues/543">discussion whether these should be declared End of Life or not</a>.</p> </blockquote> <h2>COMMUNITY UPDATES 👂️</h2> <p><a href="https://matrix.to/#/@briantist:libera.chat">briantist</a> shared</p> <blockquote> <p><a href="https://github.com/briantist/galactory">Galactory</a> has released several new versions. <code>v0.8.0</code> released with several features and bugfixes, and our first external contribution. Shortly after patch releases <code>v0.8.1</code> and <a href="https://github.com/briantist/galactory/blob/main/CHANGELOG.rst#v0-8-2"><code>v0.8.2</code></a> released to fix some bugs introduced in <code>v0.8.0</code>.</p> </blockquote> <p><a href="https://matrix.to/#/@briantist:libera.chat">briantist</a> shared</p> <blockquote> <p><a href="https://github.com/briantist/galactory">Galactory</a> has also released <a href="https://github.com/briantist/galactory/blob/main/CHANGELOG.rst#v0-9-0"><code>v0.9.0</code></a>, adding basic support for <code>ProxyFix</code> for use with reverse proxies and load balancers.</p> </blockquote> <h2>COMMUNITY EVENTS AND MEETUPS 📅</h2> <p><a href="https://matrix.to/#/@anwesha:ansible.im">anwesha</a> contributed</p> <blockquote> <p>The first Ansible Meetup for 2023 is happening tomorrow (January 12) in Stockholm! Check out the details and RSVP at our <a href="https://www.meetup.com/ansible-stockholm/events/290310440/">event page</a>. See you there! 🙂</p> </blockquote> <h2>THE ANSIBLE TEAM IS HIRING 💰️</h2> <p><a href="https://matrix.to/#/@samccann:ansible.im">samccann</a> shared</p> <blockquote> <p>Ansible product documentation (AAP) have a few senior technical writing reqs open. See the following for details: * <a href="https://us-redhat.icims.com/jobs/98391/senior-technical-writer/job?hub=7">Senior Technical Writer (US-MA-Westford)</a> * <a href="https://us-redhat.icims.com/jobs/98388/senior-technical-writer/job?hub=7">Senior Technical Writer (US-NC-Raleigh)</a> * <a href="https://us-redhat.icims.com/jobs/97562/senior-technical-writer---ansible-automation-platform/job?hub=7">Senior Technical Writer (IE-Remote)</a></p> </blockquote> <p><a href="https://matrix.to/#/@samccann:ansible.im">samccann</a> said</p> <blockquote> <p>Ansible product documentation (AAP) is looking for a senior content strategist! See <a href="https://us-redhat.icims.com/jobs/98398/senior-content-strategist/job?hub=7">Senior Content Strategist (US-Remote)</a> for details!</p> </blockquote> <h2>THAT&#39;S ALL FOR NOW!</h2> <p>Have any questions you’d like to ask, or issues you’d like to see covered? Please ask in <a href="https://matrix.to/#/#social:ansible.com">#social:ansible.com</a>! See you next time!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/cybette"> /u/cybette </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/109lmzt/the_bullhorn_87_ansible_newsletter_happy_new_year/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/109lmzt/the_bullhorn_87_ansible_newsletter_happy_new_year/">[comments]</a></span></content><id>t3_109lmzt</id><link href="https://www.reddit.com/r/ansible/comments/109lmzt/the_bullhorn_87_ansible_newsletter_happy_new_year/" /><updated>2023-01-12T00:57:59+00:00</updated><published>2023-01-12T00:57:59+00:00</published><title>The Bullhorn #87 (Ansible Newsletter) - Happy new year!!</title></entry><entry><author><name>/u/cybette</name><uri>https://www.reddit.com/user/cybette</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p><strong>The Bullhorn</strong> is a Newsletter for the Ansible Developer Community</p> <p>Subscribe --&gt; <a href="http://eepurl.com/gZmiEP">here</a> &lt;--</p> <p>If you have anything to share about what you’ve been up to with Ansible lately, at any time, simply hop into <a href="https://matrix.to/#/#social:ansible.com">#social:ansible.com</a> (the Ansible Social room on Matrix) and leave a message, tagging <a href="https://matrix.to/#/@newsbot:ansible.im">newsbot</a>. Your update will then be included in the next edition of the Bullhorn (pending editor approval, of course).</p> <p>Here&#39;s <a href="https://bit.ly/thebullhorn88">The Bullhorn #88</a> newsletter:</p> <h2>KEY DATES ⏱️</h2> <p><a href="https://matrix.to/#/@cybette:ansible.im">cybette</a> contributed</p> <blockquote> <ul> <li>2023-01-24: <a href="https://github.com/ansible/community/issues/678">DaWGs meeting</a>, 16:00 UTC</li> <li>2023-01-25: <a href="https://github.com/ansible/community/issues/679">Community WG meeting</a>, 19:00 UTC (propose topics <a href="https://github.com/ansible-community/community-topics/issues">here</a>)</li> <li>2023-01-26: <a href="https://github.com/ansible/community/wiki/News#the-bullhorn">Bullhorn #89 content deadline</a>, 18:00 UTC</li> <li>2023-01-30: <a href="https://groups.google.com/g/ansible-devel/c/IQ7VPnw9yS8">ETA for Ansible-Core 2.14.2 and 2.13.8 releases</a></li> <li>2023-01-31: <a href="https://groups.google.com/g/ansible-devel/c/htFjU7jZVYA">ETA for Ansible 7.2.0 release</a></li> <li>2023-02-08: <a href="https://hackmd.io/@ansible-community/cs202302-planning">Ansible Contributor Summit 2023.02</a></li> </ul> </blockquote> <h2>GENERAL NEWS UPDATES 🔈️</h2> <p><a href="https://matrix.to/#/@samccann:ansible.im">samccann</a> said</p> <blockquote> <p>We will redirect Ansible 2.5 documentation requests to <code>/latest/</code> starting next week. If you use Ansible 2.5, please change your bookmarks to the archived location <a href="https://docs.ansible.com/archive/ansible/2.5/">here</a>.</p> </blockquote> <p><a href="https://matrix.to/#/@mariolenz:matrix.org">mariolenz</a> contributed</p> <blockquote> <p>There are now some <a href="https://github.com/ansible-community/community-topics/tree/main/scripts">scripts</a> that (we hope) can be helpful to generate the text for Bullhorn announcements, at least for some of our community processes.</p> </blockquote> <h2>MAJOR NEW RELEASES 🏆️</h2> <h3>Antsibull <a href="https://github.com/ansible-community/antsibull">↗</a> 🐂</h3> <p>Tooling for building the <code>Ansible</code> package and collection documentation.</p> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> contributed</p> <blockquote> <p>antsibull-docs 1.9.0 (<a href="https://github.com/ansible-community/antsibull-docs/blob/1.9.0/CHANGELOG.rst#v1-9-0">changelog</a>) has been released. It improves the build script created by the <code>sphinx-init</code> subcommand (now uses the path of the script instead of something hardcoded), and shows the type of a callback plugin on its docsite page and adds indexes of callback plugins by type.</p> </blockquote> <h2>COLLECTION UPDATES 🪄</h2> <p><a href="https://matrix.to/#/@briantist:libera.chat">briantist</a> contributed</p> <blockquote> <p>The <code>community.hashi_vault</code> collection has released <a href="https://github.com/ansible-collections/community.hashi_vault/releases/tag/4.1.0">version <code>4.1.0</code></a> with a new <code>vault_list</code> module and lookup from a new contributor! There are also some upcoming deprecation announcements for <code>hvac</code> and <code>ansible-core</code> support.</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> shared</p> <blockquote> <p>community.docker 3.4.0 (<a href="https://github.com/ansible-collections/community.docker/blob/main/CHANGELOG.rst#v3-4-0">changelog</a>) has been released with several bugfixes and a new module <code>docker_container_copy_into</code>, which allows to copy files into a running or stopped container.</p> </blockquote> <p><a href="https://matrix.to/#/@resmo:libera.chat">resmo</a> contributed</p> <blockquote> <p>vultr.cloud 1.6.0 (<a href="https://github.com/vultr/ansible-collection-vultr/blob/v1.6.0/CHANGELOG.rst">changelog</a>) has been released and adds the use of IPv6 to the dynamic inventory and improves the documentation.</p> </blockquote> <p><a href="https://matrix.to/#/@mariolenz:matrix.org">mariolenz</a> said</p> <blockquote> <p>The <code>community.fortios</code> collection <a href="https://github.com/ansible-community/community-topics/issues/162">is considered unmaintained</a> and will be removed from Ansible 9 if no one starts maintaining it again before Ansible 9. See <a href="https://github.com/ansible-collections/overview/blob/main/removal_from_ansible.rst#cancelling-removal-of-an-unmaintained-collection">the removal process for details on how this works</a>.</p> <p>Please note that you can still manually install the collection with <code>ansible-galaxy collection install community.fortios</code> even when it has been removed from Ansible.</p> </blockquote> <h2>HELP WANTED 🙏</h2> <p><a href="https://matrix.to/#/@orandon:ansible.im">Don Naro</a> shared</p> <blockquote> <p>Call for contributors! You might have noticed that a lot of the docs in the ecosystem have started applying the <a href="https://pypi.org/project/sphinx-ansible-theme/">Ansible Sphinx theme</a> to documentation in recent weeks. <a href="https://ansible.github.io/ansible-sign/">Ansible Sign</a> and <a href="https://ansible-builder.readthedocs.io/en/latest/">Ansible Builder</a> are just two such projects that have recently adopted the theme. And, as more teams start using it for their docs, we&#39;re identifying maintaince and improvements to make the Ansible Sphinx theme even better. Fork the <a href="https://github.com/ansible-community/sphinx_ansible_theme">sphinx-ansible-theme repository</a> and lend us your expertise!</p> </blockquote> <h2>PROPOSALS - DISCUSS AND VOTE! 🗳️</h2> <p><a href="https://matrix.to/#/@mariolenz:matrix.org">mariolenz</a> contributed</p> <blockquote> <p>As mentioned in <a href="https://mailchi.mp/redhat/the-bullhorn-83">The Bullhorn #83</a>, we consider <code>community.google</code> an effectively unmaintained collection. Therefore, we&#39;ve opened a community / steering committee <a href="https://github.com/ansible-community/community-topics/discussions/181">vote</a> on removing it from the Ansible 9 community package.</p> </blockquote> <p><a href="https://matrix.to/#/@mariolenz:matrix.org">mariolenz</a> contributed</p> <blockquote> <p>As mentioned in <a href="https://mailchi.mp/redhat/the-bullhorn-84">The Bullhorn #84</a>, we consider <code>community.skydive</code> an effectively unmaintained collection. Therefore, we&#39;ve opened a community / steering committee <a href="https://github.com/ansible-community/community-topics/discussions/182">vote</a> on removing it from the Ansible 9 community package.</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> contributed</p> <blockquote> <p>There is a new community vote on <a href="https://github.com/ansible-community/community-topics/discussions/185">cancelling the removal process of cyberark.pas from Ansible 9</a>, since the collection seems to be actively maintained again. See <a href="https://github.com/ansible-community/community-topics/issues/180">the accompanying discussion issue</a> for details.</p> </blockquote> <p><a href="https://matrix.to/#/@felixfontein:libera.chat">felixfontein</a> said</p> <blockquote> <p>There is a new community vote on <a href="https://github.com/ansible-community/community-topics/discussions/186">updating the Ansible PyPI description</a> by merging <a href="https://github.com/ansible-community/antsibull/pull/474">the proposal PR as-is</a>. Further updates can be done in follow-up PRs if wanted and necessary.</p> </blockquote> <p><a href="https://matrix.to/#/@orandon:ansible.im">Don Naro</a> contributed</p> <blockquote> <p>As a next step on the path to a new and improved Ansible docsite we want to hear from the community! We&#39;ve narrowed down a set of key personas that we plan to use to create better entry points to Ansible documentation. The goal is to help community users find docs in a way that fully supports their automation journey. Please add your thoughts in this <a href="https://github.com/ansible-community/community-topics/issues/175">community topic</a> or comment directly on the personas <a href="https://hackmd.io/pZb5w5JFRQW3RJ73n23tlw">here</a>.</p> </blockquote> <h2>COMMUNITY UPDATES 👂️</h2> <p><a href="https://matrix.to/#/@xlab_steampunk:matrix.org">steampunks</a> shared</p> <blockquote> <p>We’ve prepared a <a href="https://steampunk.si/blog/upgrading-your-ansible-playbooks-step-by-step-guide/">step by step guide</a> on how to upgrade your Ansible Playbook in minutes using Ansible Lint and Steampunk Spotter.</p> </blockquote> <h2>COMMUNITY EVENTS AND MEETUPS 📅</h2> <p><a href="https://matrix.to/#/@ompragash:ansible.im">ompragash</a> shared</p> <blockquote> <p>📣 We are excited to announce the upcoming <strong>Ansible Community Day</strong> in India!</p> <p>Join us in-person for a day of presentations, workshops, and networking with other Ansible enthusiasts. Learn about the latest developments in Ansible and how it can help you automate your IT infrastructure. Don&#39;t miss out on this opportunity to connect with the Ansible community and take your skills to the next level.</p> <p>Register now on <a href="https://www.meetup.com/ansible-pune/events/290492160/">meetup.com</a>. If you have an interesting Ansible use case or experience you would like to share, submit your talk proposal <a href="https://forms.gle/DjTewB8GsgZdzJkc7">here</a>.</p> <p>🗓 SAT, FEB 25, 2023, 9:30 AM IST 📍 Red Hat India Private Limited, Magarpatta Inner Circle · Pune, Maharashtra</p> </blockquote> <p><a href="https://matrix.to/#/@cybette:ansible.im">cybette</a> said</p> <blockquote> <p>There are several community meetups coming up! Join <a href="https://www.meetup.com/ansible-singapore/events/290957740/">Ansible Singapore</a> on Jan 31 @ 6:30 PM SST, <a href="https://www.meetup.com/ansible-zurich/events/290204496/">Ansible Zürich</a> on Feb 28 @ 5:00 PM CET, or <a href="https://www.meetup.com/ansible-munchen/events/289768549/">Ansible München</a> also on Feb 28 @ 6:00PM CET. Check out the respective event pages for details and RSVP!</p> </blockquote> <h2>THE ANSIBLE TEAM IS HIRING 💰️</h2> <p><a href="https://matrix.to/#/@samccann:ansible.im">samccann</a> shared</p> <blockquote> <p>Ansible product documentation (AAP) have a few senior technical writing reqs open. See the following for details: * <a href="https://us-redhat.icims.com/jobs/98391/senior-technical-writer/job?hub=7">Senior Technical Writer (US-MA-Westford)</a> * <a href="https://us-redhat.icims.com/jobs/98388/senior-technical-writer/job?hub=7">Senior Technical Writer (US-NC-Raleigh)</a> * <a href="https://us-redhat.icims.com/jobs/97562/senior-technical-writer---ansible-automation-platform/job?hub=7">Senior Technical Writer (IE-Remote)</a></p> </blockquote> <p><a href="https://matrix.to/#/@samccann:ansible.im">samccann</a> said</p> <blockquote> <p>Ansible product documentation (AAP) is looking for a senior content strategist! See <a href="https://us-redhat.icims.com/jobs/98398/senior-content-strategist/job?hub=7">Senior Content Strategist (US-Remote)</a> for details!</p> </blockquote> <h2>THAT&#39;S ALL FOR NOW!</h2> <p>Have any questions you’d like to ask, or issues you’d like to see covered? Please ask in <a href="https://matrix.to/#/#social:ansible.com">#social:ansible.com</a>! See you next time!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/cybette"> /u/cybette </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10gt8eb/the_bullhorn_88_ansible_newsletter/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10gt8eb/the_bullhorn_88_ansible_newsletter/">[comments]</a></span></content><id>t3_10gt8eb</id><link href="https://www.reddit.com/r/ansible/comments/10gt8eb/the_bullhorn_88_ansible_newsletter/" /><updated>2023-01-20T10:08:47+00:00</updated><published>2023-01-20T10:08:47+00:00</published><title>The Bullhorn #88 (Ansible Newsletter)</title></entry><entry><author><name>/u/zo718</name><uri>https://www.reddit.com/user/zo718</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Hi Ansible Reddit. </p> <p><strong>TLDR:</strong> How I can get port descriptions and VLANs on a cisco stack layer 2 and import them into a Yml file. </p> <p>I am getting ready to move our cisco stacks to ansible. Nine stacks with eight switches each. </p> <p>They are all layer 2, and each GigabitEthernet port has a different description and VLAN access. In addition, these ports settings frequently change due to the nature of our office structure. Therefore VLANs and descriptions will change.</p> <p>We have decided that each stack will have its host_var file with an interfaces dictionary section. That way, we can change it as needed. </p> <p>Here is an example for our host_var yml file:</p> <pre><code>interfaces: - interface: GigabitEthernet1/0/1 desc: 02-001A mode: access vlan: 100 - interface: GigabitEthernet1/0/2 desc: rs-200 mode: access vlan: 200 - interface: GigabitEthernet1/0/3 desc: Seccamas mode: access vlan: 108 - interface: GigabitEthernet1/0/4 desc: vending machine1 mode: access VLAN: 250 </code></pre> <p>How can I get the current run config of my switches and import the description and vlan number into the host_vars yml file? I&#39;ve tried most of the gather_facts and napalm as well. but I still need help. </p> <p>&#x200B;</p> <p>So far, we have done this manually and its very time-consuming. </p> <p>Any help and suggestion is much appreciated it.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/zo718"> /u/zo718 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jpc27/get_current_cisco_sh_run_into_a_a_host_var_file/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jpc27/get_current_cisco_sh_run_into_a_a_host_var_file/">[comments]</a></span></content><id>t3_10jpc27</id><link href="https://www.reddit.com/r/ansible/comments/10jpc27/get_current_cisco_sh_run_into_a_a_host_var_file/" /><updated>2023-01-23T22:19:56+00:00</updated><published>2023-01-23T22:19:56+00:00</published><title>Get current Cisco sh run into a a host_var file.</title></entry><entry><author><name>/u/major_nerd</name><uri>https://www.reddit.com/user/major_nerd</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Hey All,</p> <p>I&#39;m new to Ansible, however I want to use it at work. I have a list of servers (Windows and RHEL) that use a SSL cert from GoDaddy. Is there a proper way to take the current cert on the machine, back it up, then replace it with an updated one? Should I just put the TLS certs on a shared drive or is Ansible the way to go (or maybe both)?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/major_nerd"> /u/major_nerd </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jem5z/ssl_certs/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jem5z/ssl_certs/">[comments]</a></span></content><id>t3_10jem5z</id><link href="https://www.reddit.com/r/ansible/comments/10jem5z/ssl_certs/" /><updated>2023-01-23T15:07:20+00:00</updated><published>2023-01-23T15:07:20+00:00</published><title>SSL Certs</title></entry><entry><author><name>/u/eightcount</name><uri>https://www.reddit.com/user/eightcount</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I have a playbook that backs up Cisco device configs to a local repo and pushes the changes to github. The first two tasks, capturing the running config and saving a file to a local directory, obviously run once per host. The final task, pushing the changes to the github repo, I only want to run once. I&#39;m using the &#39;run_once&#39; argument in that task, and it is working as intended. I&#39;m just wondering if there is another way to accomplish this.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/eightcount"> /u/eightcount </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jjoxt/is_run_once_my_best_option/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jjoxt/is_run_once_my_best_option/">[comments]</a></span></content><id>t3_10jjoxt</id><link href="https://www.reddit.com/r/ansible/comments/10jjoxt/is_run_once_my_best_option/" /><updated>2023-01-23T18:32:45+00:00</updated><published>2023-01-23T18:32:45+00:00</published><title>Is "run_once" my best option?</title></entry><entry><author><name>/u/KuzcosPosion</name><uri>https://www.reddit.com/user/KuzcosPosion</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>So earlier my team installed Duo MFA on a Fedora distro via ansible, but we upgraded to AL2, and the duo <a href="https://duo.com/docs/duounix">website</a> doesn&#39;t give too much advice on installing it on there. I&#39;ve done hours of research and the best thing i&#39;ve come up with is <a href="https://medium.com/aws-activate-startup-blog/securing-ssh-to-amazon-ec2-linux-hosts-18e9b72319d4">this</a> website, and I haven&#39;t had much luck with getting it to run. We&#39;re installing these on multiple hosts and I&#39;m not sure if installing via sources will be sufficient or cause more issues? Wasn&#39;t sure if anyone had any luck with this or could point me in a better direction. TIA<br/> edit: wording</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/KuzcosPosion"> /u/KuzcosPosion </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jjm9p/installing_duo_mfa_on_al2/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jjm9p/installing_duo_mfa_on_al2/">[comments]</a></span></content><id>t3_10jjm9p</id><link href="https://www.reddit.com/r/ansible/comments/10jjm9p/installing_duo_mfa_on_al2/" /><updated>2023-01-23T18:29:59+00:00</updated><published>2023-01-23T18:29:59+00:00</published><title>Installing DUO MFA on AL2</title></entry><entry><author><name>/u/bigups43</name><uri>https://www.reddit.com/user/bigups43</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Hey everyone, Im extremely new to Ansible, so please excuse all of the mistakes Im about to make in this post. I have a handful of linux servers at work and I want to use ansible to update them regularly. We use 1password, and I have the 1password CLI installed and working on the server I have ansible installed on. I can successfully pull passwords with this test playbook:</p> <pre><code>- hosts: localhost tasks: - name: debug: var: lookup(&quot;onepassword&quot;, &quot;linuxserver1_localadmin&quot;) </code></pre> <p>Im running into a wall trying to figure out how to use 1password within a playbook to specify which password to use when connecting to a server. All of the servers will use the same username, but each has a different password. I know I can put <code>ansible_password=xxxxx</code> in vars, but thats plain text so obviously I cant do that. So within the host file right now I have:</p> <pre><code>[linuxserver1] 10.x.x.x [linuxserver1:vars] ansible_user=linuxserver1_localadmin [linuxserver2] 10.x.x.x [linuxserver2:vars] ansible_user=linuxserver2_localadmin </code></pre> <p>My goal is to run a very simple playbook like this (pseudo-yaml):</p> <pre><code>--- - hosts: linuxserver1 tasks: - name: run updates vars: - password: lookup(&quot;onepassword&quot;, &quot;linuxserver1_localadmin&quot;) command: yum update -y - hosts: linuxserver2 tasks: - name: run updates vars: - password: lookup(&quot;onepassword&quot;, &quot;linuxserver2_localadmin&quot;) command: yum update -y </code></pre> <p>Eventually in the hosts file I will have linuxserver3/4/5 etc. Is there a way to specify the password with 1pass in the hosts file, or is it done in the playbook like Im imagining in the pseudo-code?</p> <p>Thanks for any and all help!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/bigups43"> /u/bigups43 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jj8fn/question_about_how_to_use_1password_within/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jj8fn/question_about_how_to_use_1password_within/">[comments]</a></span></content><id>t3_10jj8fn</id><link href="https://www.reddit.com/r/ansible/comments/10jj8fn/question_about_how_to_use_1password_within/" /><updated>2023-01-23T18:14:39+00:00</updated><published>2023-01-23T18:14:39+00:00</published><title>Question about how to use 1password within playbooks</title></entry><entry><author><name>/u/lan-gran</name><uri>https://www.reddit.com/user/lan-gran</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Hi,</p> <p>I&#39;m hoping you can help me with this because it is driving me mad. I&#39;m trying to convert a task from a Windows automation tool into ansible. The task asks to compress several files from a directory that match a certain pattern and also excludes another. My plan is to try to generate a list of files and afterwrds compress them into a single zip file (using a loop and the archive module).</p> <p>I have copied a representation of the patterns below </p> <ul> <li>&#39;{{ Prefix }}{{ any character x number of times }}{{ 2 digits control code }}{{ timestamp }}.txt&#39;</li> <li>exclude=&quot;<sup>[<sup>MT]&quot;</sup></sup></li> </ul> <p>The following works but it doesn&#39;t do the exclusion</p> <p><code>yaml - name: &quot;Generate a list of files matching a pattern&quot; find: paths: &quot;{{ dir_orig }}&quot; file_type: file depth: 1 use_regex: true patterns: - &#39;{{ fichero_prefix }}.*{{ TH }}{{ mmyy_tstamp.stdout }}.txt&#39; register: myfiles when: item.key != 5 </code> but when I add the exclusion, it fails</p> <p><code>yaml - name: &quot;Generate a list of files matching a pattern&quot; find: paths: &quot;{{ dir_orig }}&quot; file_type: file depth: 1 use_regex: true excludes: - &#39;^[^MT]*&#39; patterns: - &#39;{{ fichero_prefix }}.*{{ TH }}{{ mmyy_tstamp.stdout }}.txt&#39; register: myfiles when: item.key != 5 </code></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/lan-gran"> /u/lan-gran </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jdf9d/problem_with_a_exclusion_mask_usind_the_find/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jdf9d/problem_with_a_exclusion_mask_usind_the_find/">[comments]</a></span></content><id>t3_10jdf9d</id><link href="https://www.reddit.com/r/ansible/comments/10jdf9d/problem_with_a_exclusion_mask_usind_the_find/" /><updated>2023-01-23T14:13:54+00:00</updated><published>2023-01-23T14:13:54+00:00</published><title>Problem with a exclusion mask usind the find module.</title></entry><entry><author><name>/u/1searching</name><uri>https://www.reddit.com/user/1searching</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I&#39;m creating a playbook in Ansible to update a certain ACL Name. Since the target is thousands of networking devices, I&#39;d like to implement error handling in order to catch and log a specific issue for a certain host.</p> <p>&#x200B;</p> <pre><code>--- - name: ACL UPDATE hosts: Switches gather_facts: False connection: network_cli vars_prompt: - name: &quot;TACUSER&quot; prompt: &quot;Enter Username to access device&quot; private: no - name: &quot;TACPWD&quot; prompt: &quot;Enter Password&quot; private: yes vars: # LOG FILES the_logf: &quot;/home/lab/Desktop/WG_ACL/reports/loggings.dat&quot; # SAMPLE ACL NAME my_acl_list: - 11 - 13 - DATA_TEST - dummy fail: &quot;No such access-list {{item}}&quot; # TARGET ACL ENTRIES TO BE ADDED ON FF. ACL NAME UP_ACL11: lines: - access-list 11 permit 192.168.1.4 - access-list 11 permit 192.168.1.5 - access-list 11 permit 192.168.2. parents: - access-list 11 permit 192.168.1.4 - access-list 11 permit 192.168.1.5 UP_ACL13: parents: access-list 13 permit 10.22.1.64 0.0.0.63 UP_ACLDATA: lines: - permit 172.11.1.64 0.0.0.63 - permit 172.12.2.64 0.0.0.63 parents: ip access-list standard DATA_TEST tasks: # GET TIME TIME - name: Get date for folder creation set_fact: timestamp: &quot;{{lookup(&#39;pipe&#39;,&#39;date +%Y-%m-%d&#39;)}}&quot; tags: - timestamp run_once: true ignore_errors: True # LOG FILE CREATION - name: Create output.dat file lineinfile: path: &quot;{{ the_logf }}&quot; create: yes line: &quot;parsedevices=true&quot; delegate_to: localhost run_once: true ignore_errors: True - name: show access-list ios_command: commands: &quot;show access-lists {{item}}&quot; with_items: &quot;{{ my_acl_list }}&quot; register: acl_result # - debug: # msg: &quot;{{ acl_result }}&quot; - name: IF ACL NAME DO EXIST lineinfile: line: &quot;{{inventory_hostname}} {{ item.item }} ACCESS-LIST EXIST&quot; path: &quot;{{ the_logf }}&quot; create: yes with_items: &quot;{{ acl_result.results }}&quot; loop_control: label: &quot;{{ item.item }}&quot; when: item.stdout|first|length &gt; 0 register: list_test - name: IF ACL NAME DOES NOT EXIST lineinfile: line: &quot;{{inventory_hostname}} {{ item.item }} ACCESS-LIST DOES NOT EXIST&quot; path: &quot;{{ the_logf }}&quot; create: yes with_items: &quot;{{ acl_result.results }}&quot; loop_control: label: &quot;{{ item.item }}&quot; when: item.stdout|first|length == 0 - block: - name: CONFIGURE ACL 11 ios_config: lines: &quot;{{ UP_ACL11.lines }}&quot; match: exact save_when: modified with_items: &quot;{{ acl_result.results }}&quot; loop_control: label: &quot;{{ item.item }}&quot; when: item.item == 11 register: conf_rest - debug: msg: &quot;{{ conf_rest }}&quot; rescue: - name: Print output to error file lineinfile: path: &quot;{{ the_logf }}&quot; create: yes line: &quot;{{inventory_hostname}} {{ ansible_failed_result }}&quot; </code></pre> <p>On the above code, I&#39;m trying with block and rescue, but if you could assist me, how can I capture the exact reason? For instance, I&#39;ve found the following issue and I just want to log that it is caused by <strong>&quot;Invalid input&quot;</strong> for the device.</p> <pre><code>TASK [CONFIGURE ACL 11] ********************************************************************************************************************************* An exception occurred during task execution. To see the full traceback, use -vvv. The error was: 2960_TEST-SW01(config)# failed: [192.168.1.67] (item=11) =&gt; {&quot;ansible_loop_var&quot;: &quot;item&quot;, &quot;changed&quot;: false, &quot;item&quot;: {&quot;ansible_facts&quot;: {&quot;discovered_interpreter_python&quot;: &quot;/usr/bin/python3&quot;}, &quot;ansible_loop_var&quot;: &quot;item&quot;, &quot;changed&quot;: false, &quot;failed&quot;: false, &quot;invocation&quot;: {&quot;module_args&quot;: {&quot;commands&quot;: [&quot;show access-lists 11&quot;], &quot;interval&quot;: 1, &quot;match&quot;: &quot;all&quot;, &quot;provider&quot;: null, &quot;retries&quot;: 10, &quot;wait_for&quot;: null}}, &quot;item&quot;: 11, &quot;stdout&quot;: [&quot;Standard IP access list 11\n 10 permit 192.168.1.1\n 20 permit 192.168.1.2\n 30 permit 192.168.1.5\n 40 permit 192.168.1.4&quot;], &quot;stdout_lines&quot;: [[&quot;Standard IP access list 11&quot;, &quot; 10 permit 192.168.1.1&quot;, &quot; 20 permit 192.168.1.2&quot;, &quot; 30 permit 192.168.1.5&quot;, &quot; 40 permit 192.168.1.4&quot;]]}, &quot;module_stderr&quot;: &quot;Traceback (most recent call last):\n File \&quot;/home/lab/.ansible/tmp/ansible-local-30296d5tq02l/ansible-tmp-1674494083.9640558-3278-5066578110349/AnsiballZ_ios_config.py\&quot;, line 102, in &lt;module&gt;\n _ansiballz_main()\n File \&quot;/home/lab/.ansible/tmp/ansible-local-30296d5tq02l/ansible-tmp-1674494083.9640558-3278-5066578110349/AnsiballZ_ios_config.py\&quot;, line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \&quot;/home/lab/.ansible/tmp/ansible-local-30296d5tq02l/ansible-tmp-1674494083.9640558-3278-5066578110349/AnsiballZ_ios_config.py\&quot;, line 40, in invoke_module\n runpy.run_module(mod_name=&#39;ansible_collections.cisco.ios.plugins.modules.ios_config&#39;, init_globals=None, run_name=&#39;__main__&#39;, alter_sys=True)\n File \&quot;/usr/lib/python3.10/runpy.py\&quot;, line 224, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \&quot;/usr/lib/python3.10/runpy.py\&quot;, line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \&quot;/usr/lib/python3.10/runpy.py\&quot;, line 86, in _run_code\n exec(code, run_globals)\n File \&quot;/tmp/ansible_ios_config_payload_6egs2998/ansible_ios_config_payload.zip/ansible_collections/cisco/ios/plugins/modules/ios_config.py\&quot;, line 593, in &lt;module&gt;\n File \&quot;/tmp/ansible_ios_config_payload_6egs2998/ansible_ios_config_payload.zip/ansible_collections/cisco/ios/plugins/modules/ios_config.py\&quot;, line 518, in main\n File \&quot;/tmp/ansible_ios_config_payload_6egs2998/ansible_ios_config_payload.zip/ansible_collections/cisco/ios/plugins/modules/ios_config.py\&quot;, line 385, in edit_config_or_macro\n File \&quot;/tmp/ansible_ios_config_payload_6egs2998/ansible_ios_config_payload.zip/ansible/module_utils/connection.py\&quot;, line 195, in __rpc__\nansible.module_utils.connection.ConnectionError: access-list 11 permit 192.168.2.\r\naccess-list 11 permit 192.168.2.\r\n ^\r\n% Invalid input detected at &#39;^&#39; marker.\r\n\r\n2960_TEST-SW01(config)#\n&quot;, &quot;module_stdout&quot;: &quot;&quot;, &quot;msg&quot;: &quot;MODULE FAILURE\nSee stdout/stderr for the exact error&quot;, &quot;rc&quot;: 1} skipping: [192.168.1.67] =&gt; (item=13) skipping: [192.168.1.67] =&gt; (item=DATA_TEST) skipping: [192.168.1.67] =&gt; (item=dummy) </code></pre> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/1searching"> /u/1searching </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jidn9/help_ios_config_error_handling/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jidn9/help_ios_config_error_handling/">[comments]</a></span></content><id>t3_10jidn9</id><link href="https://www.reddit.com/r/ansible/comments/10jidn9/help_ios_config_error_handling/" /><updated>2023-01-23T17:41:20+00:00</updated><published>2023-01-23T17:41:20+00:00</published><title>Help! IOS_CONFIG Error Handling?</title></entry><entry><author><name>/u/kamilloi</name><uri>https://www.reddit.com/user/kamilloi</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Hi. I try to achieve routine where:</p> <ul> <li>Docker container is spawned (initial state)</li> <li>Service initially generating api key</li> <li>Ansible receiving this key (and somehow check if changed / created)</li> <li>Container is updated (recreated) with this key assigned as container label if needed</li> </ul> <p>Right now I got as in example below (based on ansible-nas) This requires running it twice to achieve and looks ugly.</p> <pre><code>- name: Get Api key shell: #command to extract api key register: radarr_api_key_extracted - name: Radarr Docker Container docker_container: name: radarr image: linuxserver/radarr pull: true labels: homepage.name: &quot;{{ radarr_hostname }}&quot; homepage.icon: &quot;radarr.png&quot; homepage.href: &quot;https://{{ radarr_hostname }}.{{ ansible_nas_domain }}&quot; homepage.description: &quot;Movies&quot; homepage.widget.type: &quot;radarr&quot; homepage.widget.key: &quot;{{ radarr_api_key_extracted.stdout }}&quot; </code></pre> <p>I tried to search for ideas (I am already aware that get_api_key task should have changed_when: but still searching for idea to differentiate if this value changed &lt;does ansible can keep state of previous iteration?&gt; )</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/kamilloi"> /u/kamilloi </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jbhc2/noob_correct_way_to_recreate_docker_with_updated/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jbhc2/noob_correct_way_to_recreate_docker_with_updated/">[comments]</a></span></content><id>t3_10jbhc2</id><link href="https://www.reddit.com/r/ansible/comments/10jbhc2/noob_correct_way_to_recreate_docker_with_updated/" /><updated>2023-01-23T12:36:43+00:00</updated><published>2023-01-23T12:36:43+00:00</published><title>[noob] Correct way to recreate docker with updated labels</title></entry><entry><author><name>/u/Some_Concentrate_598</name><uri>https://www.reddit.com/user/Some_Concentrate_598</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I use json_query to check if a key exists. </p> <p>my json is something like this:</p> <p><code>{</code></p> <p><code>&quot;key1&quot;: { &quot;value1&quot;,</code></p> <p><code>&quot;key2&quot;: {</code></p> <p><code>&quot;subkey-1&quot;: &quot;subvalue-1&quot;,</code></p> <p><code>&quot;subkey-2&quot;: &quot;subvalue-2&quot;}</code></p> <p><code>}</code></p> <p>when I execute &quot;{{json|json_query(&#39;subkey-1&#39;)}}&quot;</p> <p>it stops and gives me the error unknown token &#39;-&#39;.</p> <p>Can anyone help? I have tried various things to get around the &#39;-&#39; but nothing has worked.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Some_Concentrate_598"> /u/Some_Concentrate_598 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10jfyt6/querying_a_key_with_does_not_work/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10jfyt6/querying_a_key_with_does_not_work/">[comments]</a></span></content><id>t3_10jfyt6</id><link href="https://www.reddit.com/r/ansible/comments/10jfyt6/querying_a_key_with_does_not_work/" /><updated>2023-01-23T16:04:02+00:00</updated><published>2023-01-23T16:04:02+00:00</published><title>querying a key with "-" does not work</title></entry><entry><author><name>/u/volcano11</name><uri>https://www.reddit.com/user/volcano11</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>There is a playbook with roles, which uses some vars to work.</p> <pre><code>- name: PROCESS PAUSE hosts: all roles: - { role: system_process_pause, process_name: &quot;{{ process }}&quot;} - { role: system_pause, time_wait: &quot;{{ test_execution_time }}&quot;} - system_process_continue - { role: system_pause, time_wait: &quot;{{ time_between_tests }}&quot;} </code></pre> <p>The <strong>{{ process }}</strong> var have just 1 value in group_vars. I need to change it so it would be a list, but the roles should run as they are now:</p> <ol> <li>role: system_process_pause, process_name: &quot;{{ process#1 }}&quot;</li> <li>system_process_continue</li> <li>role: system_pause, time_wait: &quot;{{ time_between_tests }}&quot;</li> <li>role: system_process_pause, process_name: &quot;{{ process#2 }}&quot;</li> <li>system_process_continue</li> <li>role: system_pause, time_wait: &quot;{{ time_between_tests }}&quot;</li> </ol> <p>And so on while the list ends. I made changes to playbook, so it looks like this:</p> <pre><code>- name: PROCESS PAUSE hosts: all tasks: - include_role: name: system_process_pause with_list: &quot;{{ process }}&quot; loop_control: loop_var: process_name - include_role: name: system_pause vars: time_wait: &quot;{{ test_execution_time }}&quot; - include_role: name: system_process_continue - include_role: name: system_pause vars: time_wait: &quot;{{ time_between_tests }}&quot; </code></pre> <p>But it doesn&#39;t run as I want:</p> <pre><code> PLAY [PROCESS PAUSE] *********************************************************************** TASK [include_role : system_process_pause] ************************************************* TASK [system_process_pause : START process pause - 22-01-2023_15-01-43] ******************** changed: [localhost] TASK [system_process_pause : Pause running processes] ************************************** changed: [localhost] =&gt; **(item=295)** TASK [system_process_pause : START process pause - 22-01-2023_15-01-44] ******************** changed: [localhost] TASK [system_process_pause : Pause running processes] ************************************** changed: [localhost] =&gt; **(item=154166)** TASK [include_role : system_pause] ********************************************************* TASK [system_pause : PAUSE 30 sec] ********************************************************* </code></pre> <p>As you see, it takes both vars from the list (item=) and execute tasks with them in the same loop. It runs roles in this order:</p> <ol> <li>role: system_process_pause, process_name: &quot;{{ process#1 }}&quot;</li> <li>role: system_process_pause, process_name: &quot;{{ process#2 }}&quot;</li> <li>system_process_continue</li> <li>role: system_pause, time_wait: &quot;{{ time_between_tests }}&quot;</li> <li>system_process_continue</li> <li>role: system_pause, time_wait: &quot;{{ time_between_tests }}&quot;</li> </ol> <p>Please help, I don&#39;t understand how to make it work as I need (in order like in the beginning).</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/volcano11"> /u/volcano11 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10j7ir7/need_some_help_with_loops_in_roles/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10j7ir7/need_some_help_with_loops_in_roles/">[comments]</a></span></content><id>t3_10j7ir7</id><link href="https://www.reddit.com/r/ansible/comments/10j7ir7/need_some_help_with_loops_in_roles/" /><updated>2023-01-23T08:19:15+00:00</updated><published>2023-01-23T08:19:15+00:00</published><title>need some help with loops in roles</title></entry><entry><author><name>/u/Unfair_Combination67</name><uri>https://www.reddit.com/user/Unfair_Combination67</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>So i been trying for the last two days to incorporate variables in a role list. This is what i came up with</p> <p>I&#39;ve tried this with this command.</p> <p>ansible-playbook -i hosts_testing/host-test_stable.yml roles/upgrade_server/tasks/main.yml</p> <p>Error it produces is</p> <p>ERROR: the field host is required but was not set.</p> <p>I dont understand since i link to my host file with the command host-test_stable.yml</p> <p>Help is appreciated if this is even possible if it is then it its amazing!!! </p> <pre><code>--- - tasks: - name: Install basic packages for Debian tags: install block: - include_vars: &quot;/root/ITOPS/Ansible/resources/example2.yaml&quot; - include_role: name: &quot;/root/ITOPS/Ansible/roles/root/ITOPS/Ansible/roles/install_basic_packages/tasks/main4.yaml&quot; become: true - name: Upgrade Server tags: upgrade block: - include_vars: &quot;root/ITOPS/Ansible/resources/example1.yaml&quot; - include_role: name: &quot;root/ITOPS/Ansible/roles/upgrade_server/tasks/main.yaml&quot; become: true </code></pre> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Unfair_Combination67"> /u/Unfair_Combination67 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10isygl/including_vars_in_a_role_list/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10isygl/including_vars_in_a_role_list/">[comments]</a></span></content><id>t3_10isygl</id><link href="https://www.reddit.com/r/ansible/comments/10isygl/including_vars_in_a_role_list/" /><updated>2023-01-22T20:13:06+00:00</updated><published>2023-01-22T20:13:06+00:00</published><title>Including vars in a role list</title></entry><entry><author><name>/u/Shad_Zam</name><uri>https://www.reddit.com/user/Shad_Zam</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Hello everyone,</p> <p>I&#39;ve been a long-time subscriber to this subreddit, but this is my first post. I recently published an article on automating AWS marketplace publishing using Ansible. If you&#39;re new to Ansible or are looking to streamline your AWS marketplace publishing process, this article is for you!</p> <p>In this article, I cover the basics of Ansible, how to create an EC2 instance, create an Amazon Machine Image (AMI), and how to use Ansible to automate the publishing process on the AWS marketplace.</p> <p>I also share some tips and best practices for using Ansible to automate your AWS marketplace publishing.</p> <p>You can find the article here: <a href="https://medium.com/@arshad.zameer/getting-started-with-ansible-for-aws-marketplace-publishing-a547cc13d182">https://medium.com/@arshad.zameer/getting-started-with-ansible-for-aws-marketplace-publishing-a547cc13d182</a></p> <p>I hope the article is helpful to you. If you have any questions or feedback, feel free to comment.</p> <p>Thanks for reading!</p> <p>#Ansible #AWS #AWSMarketplace #Automation</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Shad_Zam"> /u/Shad_Zam </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10iarcx/how_to_automate_aws_marketplace_publishing_with/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10iarcx/how_to_automate_aws_marketplace_publishing_with/">[comments]</a></span></content><id>t3_10iarcx</id><link href="https://www.reddit.com/r/ansible/comments/10iarcx/how_to_automate_aws_marketplace_publishing_with/" /><updated>2023-01-22T04:17:17+00:00</updated><published>2023-01-22T04:17:17+00:00</published><title>how to automate AWS marketplace publishing with Ansible - A beginner's guide</title></entry><entry><author><name>/u/bananna_roboto</name><uri>https://www.reddit.com/user/bananna_roboto</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I&#39;ve been beating my head against a wall for the past 2 hours trying to troubleshoot these errors:</p> <p>An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: cannot import name &#39;connect&#39; from &#39;pyVim&#39; (unknown location)</p> <p>fatal: [my-targethost -&gt; localhost]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to import the required Python library (PyVmomi) on myansibleserver&#39;s Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter&quot;}</p> <p>&#x200B;</p> <p>- PyVmomi is was installed using sudo pip3 install PyVmomi</p> <p>/usr/local/lib/python3.8/dist-packages/pyVmomi/*</p> <p>- Ansible is using the 3.8.10 python library</p> <p>- I&#39;ve tried tweaking the read permissions on the package directories</p> <p>sudo chmod a+r -R /usr/local/lib/python3.8/dist-packages/sudo chmod a+r -R /usr/lib/python3/dist-packages/</p> <p>- I&#39;ve tried setting ansible_python_interpreter to /usr/bin/python3.8</p> <p>- I&#39;ve tried uninstall and install PyVmomi, pyVim, connect ETC manually a bunch of times to no avail.</p> <p>&#x200B;</p> <p>Things magically work if I add Become: yes to my task.................. But that&#39;s an incredibly shitty fix.</p> <p>&#x200B;</p> <p>Controller is Ubuntu 20.04, running ansible </p> <p>ansible [core 2.13.3]</p> <p>config file = /etc/ansible/ansible.cfg</p> <p>configured module search path = [&#39;/root/.ansible/plugins/modules&#39;, &#39;/usr/share/ansible/plugins/modules&#39;]</p> <p>ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible</p> <p>ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections</p> <p>executable location = /usr/local/bin/ansible</p> <p>python version = 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0]</p> <p>jinja version = 3.1.2</p> <p>libyaml = True</p> <p>&#x200B;</p> <p>Help Plox!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/bananna_roboto"> /u/bananna_roboto </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10i6mbf/vmware_guest_find_fails_unless_using_become_yes/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10i6mbf/vmware_guest_find_fails_unless_using_become_yes/">[comments]</a></span></content><id>t3_10i6mbf</id><link href="https://www.reddit.com/r/ansible/comments/10i6mbf/vmware_guest_find_fails_unless_using_become_yes/" /><updated>2023-01-22T00:47:26+00:00</updated><published>2023-01-22T00:47:26+00:00</published><title>vmware_guest_find fails unless using become: yes</title></entry><entry><author><name>/u/ButterscotchWrong932</name><uri>https://www.reddit.com/user/ButterscotchWrong932</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>How to read/display the following response (e.g: Policy Name, srcinft, dstinf) from FortiGate Firewall.</p> <p>&#x200B;</p> <pre><code>{ </code></pre> <p>&quot;changed&quot;: false, &quot;meta&quot;: { &quot;http_method&quot;: &quot;GET&quot;, &quot;size&quot;: 2, &quot;matched_count&quot;: 2, &quot;next_idx&quot;: 1, &quot;revision&quot;: &quot;ac9c4e1d722b74695dee4fb3ce4fcd12&quot;, &quot;results&quot;: [ { &quot;policyid&quot;: 1, &quot;q_origin_key&quot;: 1, &quot;status&quot;: &quot;enable&quot;, &quot;name&quot;: &quot;test-policy01&quot;, &quot;uuid&quot;: &quot;c4de3298-97ce-51ed-ccba-cafc556ba9e0&quot;, &quot;uuid-idx&quot;: 14729, &quot;srcintf&quot;: [ { &quot;name&quot;: &quot;port2&quot;, &quot;q_origin_key&quot;: &quot;port2&quot; } ], &quot;dstintf&quot;: [ { &quot;name&quot;: &quot;port1&quot;, &quot;q_origin_key&quot;: &quot;port1&quot; } ], &quot;action&quot;: &quot;accept&quot;, &quot;ztna-status&quot;: &quot;disable&quot;, &quot;srcaddr&quot;: [ { &quot;name&quot;: &quot;all&quot;, &quot;q_origin_key&quot;: &quot;all&quot; } ], &quot;dstaddr&quot;: [ { &quot;name&quot;: &quot;all&quot;, &quot;q_origin_key&quot;: &quot;all&quot; } ], &quot;policy-expiry&quot;: &quot;disable&quot;, &quot;policy-expiry-date&quot;: &quot;0000-00-00 00:00:00&quot;, &quot;service&quot;: [ { &quot;name&quot;: &quot;ALL&quot;, &quot;q_origin_key&quot;: &quot;ALL&quot; } ], &quot;tos&quot;: &quot;0x00&quot;, &quot;sgt-check&quot;: &quot;disable&quot;, &quot;sgt&quot;: [] }, { &quot;policyid&quot;: 2, &quot;q_origin_key&quot;: 2, &quot;status&quot;: &quot;enable&quot;, &quot;name&quot;: &quot;test-policy-02&quot;, &quot;uuid&quot;: &quot;534b6c9c-97d1-51ed-7aa8-7544c628c7ea&quot;, &quot;uuid-idx&quot;: 14730, &quot;srcintf&quot;: [ { &quot;name&quot;: &quot;port1&quot;, &quot;q_origin_key&quot;: &quot;port1&quot; } ], &quot;dstintf&quot;: [ { &quot;name&quot;: &quot;port2&quot;, &quot;q_origin_key&quot;: &quot;port2&quot; } ], &quot;action&quot;: &quot;accept&quot;, &quot;nat64&quot;: &quot;disable&quot;, &quot;nat46&quot;: &quot;disable&quot;, &quot;ztna-status&quot;: &quot;disable&quot;, &quot;srcaddr&quot;: [ { &quot;name&quot;: &quot;all&quot;, &quot;q_origin_key&quot;: &quot;all&quot; } ], &quot;dstaddr&quot;: [ { &quot;name&quot;: &quot;login.microsoft.com&quot;, &quot;q_origin_key&quot;: &quot;login.microsoft.com&quot; } ], &quot;srcaddr6&quot;: [], &quot;reputation-direction6&quot;: &quot;destination&quot;, &quot;policy-expiry-date&quot;: &quot;0000-00-00 00:00:00&quot;, &quot;service&quot;: [ { &quot;name&quot;: &quot;ALL_ICMP6&quot;, &quot;q_origin_key&quot;: &quot;ALL_ICMP6&quot; } ], &quot;tos&quot;: &quot;0x00&quot;, &quot;webcache&quot;: &quot;disable&quot;, &quot;webcache-https&quot;: &quot;disable&quot;, &quot;sgt-check&quot;: &quot;disable&quot;, &quot;sgt&quot;: [] } ], &quot;vdom&quot;: &quot;root&quot;, &quot;path&quot;: &quot;firewall&quot;, &quot;name&quot;: &quot;policy&quot;, &quot;version&quot;: &quot;v7.2.3&quot;, &quot;build&quot;: 1262 }, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;vdom&quot;: &quot;root&quot;, &quot;access_token&quot;: &quot;VALUE_SPECIFIED_IN_NO_LOG_PARAMETER&quot;, &quot;selector&quot;: &quot;firewall_policy&quot;, &quot;selectors&quot;: null } }, &quot;_ansible_no_log&quot;: false }</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/ButterscotchWrong932"> /u/ButterscotchWrong932 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10hwl8r/how_to_read_and_display_response_from_fortigate/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10hwl8r/how_to_read_and_display_response_from_fortigate/">[comments]</a></span></content><id>t3_10hwl8r</id><link href="https://www.reddit.com/r/ansible/comments/10hwl8r/how_to_read_and_display_response_from_fortigate/" /><updated>2023-01-21T17:33:37+00:00</updated><published>2023-01-21T17:33:37+00:00</published><title>How to Read and Display Response from FortiGate Firewall Policies</title></entry><entry><author><name>/u/Ansible-Guy</name><uri>https://www.reddit.com/user/Ansible-Guy</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Greetings!</p> <p>I&#39;ve created two Ansible Roles (<em>tested</em>) and an Ansible Collection (<em>in development</em>) for managing NFTables on Linux servers!</p> <ul> <li>NFTables Base-Role: <a href="https://github.com/ansibleguy/infra_nftables">https://github.com/ansibleguy/infra_nftables</a></li> <li>Role to install Add-Ons: <a href="https://github.com/ansibleguy/addons_nftables">https://github.com/ansibleguy/addons_nftables</a> (<em>DNS Resolution, IP-Lists</em>)</li> <li>Modules/Collection: <a href="https://github.com/ansibleguy/collection_nftables">https://github.com/ansibleguy/collection_nftables</a></li> </ul> <p>I would be glad to get some feedback.</p> <p>The development of the collection takes up a lot of time - if someone is interested in collaborating, just contact me. (:</p> <p>- AnsibleGuy</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Ansible-Guy"> /u/Ansible-Guy </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10hzepl/nftables_ansible_role_collection/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10hzepl/nftables_ansible_role_collection/">[comments]</a></span></content><id>t3_10hzepl</id><link href="https://www.reddit.com/r/ansible/comments/10hzepl/nftables_ansible_role_collection/" /><updated>2023-01-21T19:31:31+00:00</updated><published>2023-01-21T19:31:31+00:00</published><title>NFTables Ansible Role & Collection</title></entry><entry><author><name>/u/UntouchedWagons</name><uri>https://www.reddit.com/user/UntouchedWagons</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>This is my playbook:</p> <pre><code>--- - hosts: docker become: false tasks: - name: Compress directory ~/ into /mnt/data/Backups/VM-Docker/home-{{ &#39;%Y-%m-%d&#39; | strftime }}.tgz community.general.archive: path: ~/ dest: /mnt/data/Backups/VM-Docker/home-{{ &#39;%Y-%m-%d&#39; | strftime }}.tgz </code></pre> <p>Very simple. But when I run it I get a tgz file that contains a tgz file that contains the path specified.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/UntouchedWagons"> /u/UntouchedWagons </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10i0v93/why_does_the_archive_module_create_double_nested/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10i0v93/why_does_the_archive_module_create_double_nested/">[comments]</a></span></content><id>t3_10i0v93</id><link href="https://www.reddit.com/r/ansible/comments/10i0v93/why_does_the_archive_module_create_double_nested/" /><updated>2023-01-21T20:32:03+00:00</updated><published>2023-01-21T20:32:03+00:00</published><title>Why does the archive module create double nested tarballs?</title></entry><entry><author><name>/u/xirucaire</name><uri>https://www.reddit.com/user/xirucaire</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I&#39;m trying to set NtfsAccessEntry but ansible returns that some arguments are missing, although I can&#39;t see anything wrong on it:</p> <pre><code> - name: Configure NtfsAccessEntry win_dsc: resource_name: NtfsAccessEntry path: &#39;C:\Windows\system32\telnet.exe&#39; AccessControlList: - AccessControlEntry: - AccessControlType: Allow - FileSystemRights: GenericAll, Synchronize - Inheritance: This object and all child objects - Ensure: Present - ForcePrincipal: True - Principal: NT AUTHORITY\SYSTEM fatal: [10.1.1.20]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;missing required arguments: Inheritance, Ensure, FileSystemRights found in AccessControlList -&gt; AccessControlEntry&quot;} </code></pre> <p>&#x200B;</p> <p>I&#39;m trying to adapt this example on <a href="https://github.com/mcollera/AccessControlDsc/blob/master/Examples/NtfsAccessEntry_example.ps1">AccessControlDsc</a> via win_dsc.</p> <p>Any ideas of what I&#39;m missing?</p> <p>EDIT: so this did the trick</p> <pre><code> - name: Configure NtfsAccessEntry win_dsc: resource_name: NtfsAccessEntry path: &#39;C:\temp\kk2.txt&#39; AccessControlList: - AccessControlEntry: - { FileSystemRights: &#39;Synchronize,FullControl&#39;, Ensure: &#39;Present&#39;, Inheritance: &#39;This folder subfolders and files&#39;, AccessControlType: &#39;Allow&#39;, } - ForcePrincipal: &#39;True&#39; - Principal: &#39;NT AUTHORITY\SYSTEM&#39; </code></pre> <p>&#x200B;</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/xirucaire"> /u/xirucaire </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10hxwut/trying_to_find_out_missing_required_arguments_on/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10hxwut/trying_to_find_out_missing_required_arguments_on/">[comments]</a></span></content><id>t3_10hxwut</id><link href="https://www.reddit.com/r/ansible/comments/10hxwut/trying_to_find_out_missing_required_arguments_on/" /><updated>2023-01-21T18:29:01+00:00</updated><published>2023-01-21T18:29:01+00:00</published><title>Trying to find out missing required arguments on a list</title></entry><entry><author><name>/u/sbbh1</name><uri>https://www.reddit.com/user/sbbh1</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I have a playbook containing the creation of a docker container that seems to fail while running tests with Molecule:</p> <pre><code>TASK [Run Docker container] **************************************************** fatal: [test]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Error starting container b5d8f00607e90f428ba0d3ea7d200d932157b361bf539acb622bf26495336db3: 500 Server Error for http+docker://localhost/v1.41/containers/b5d8f00607e90f428ba0d3ea7d200d932157b361bf539acb622bf26495336db3/start: Internal Server Error (\&quot;failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error reopening /dev/null inside container: open /dev/null: operation not permitted: unknown\&quot;)&quot;} </code></pre> <p>I have tried several different containers besides nginx and all are throwing the same error.</p> <p>Are there any additional steps I need to take to enable running a container from within a docker container?</p> <p>This is the molecule config for this test:</p> <pre><code>dependency: name: galaxy driver: name: docker lint: | set -e yamllint . ansible-lint platforms: - name: test image: &quot;geerlingguy/docker-debian10-ansible:latest&quot; command: &quot;&quot; volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible config_options: defaults: vault_password_file: ~/.ansible_vault inventory: links: hosts: ../../inventory.ini group_vars: ../../group_vars/ host_vars: ../../host_vars/ verifier: name: ansible </code></pre> <p>The converge file:</p> <pre><code>- name: Converge hosts: test tasks: - name: Update apt cache (on Debian). apt: update_cache: true cache_valid_time: 3600 - ansible.builtin.import_playbook: ../../playbooks/test.yml vars: testing: true </code></pre> <p>The playbook:</p> <pre><code>- hosts: test gather_facts: true become: true tasks: - name: Include docker role ansible.builtin.import_role: name: geerlingguy.docker - name: Include pip role ansible.builtin.import_role: name: geerlingguy.pip vars: pip_install_packages: - docker - name: Run Docker container community.docker.docker_container: name: test image: nginx state: started </code></pre> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/sbbh1"> /u/sbbh1 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10hdy0u/molecule_test_fails_trying_to_create_a_container/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10hdy0u/molecule_test_fails_trying_to_create_a_container/">[comments]</a></span></content><id>t3_10hdy0u</id><link href="https://www.reddit.com/r/ansible/comments/10hdy0u/molecule_test_fails_trying_to_create_a_container/" /><updated>2023-01-21T00:29:12+00:00</updated><published>2023-01-21T00:29:12+00:00</published><title>Molecule test fails trying to create a container</title></entry><entry><author><name>/u/TerriblePowershell</name><uri>https://www.reddit.com/user/TerriblePowershell</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I&#39;m trying to create a short playbook to grab the uptime out of our switches. ios_facts doesn&#39;t have anything for that and I can&#39;t seem to find anything online that tells me what to do. I&#39;ve tried a few regex search but I&#39;m clueless when it comes to regex so I&#39;m sure I&#39;m not doing something right. </p> <p>Has anyone come up with or know of a way to do this?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/TerriblePowershell"> /u/TerriblePowershell </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10h2f32/trying_to_get_cisco_switch_uptime_and_not_having/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10h2f32/trying_to_get_cisco_switch_uptime_and_not_having/">[comments]</a></span></content><id>t3_10h2f32</id><link href="https://www.reddit.com/r/ansible/comments/10h2f32/trying_to_get_cisco_switch_uptime_and_not_having/" /><updated>2023-01-20T17:14:19+00:00</updated><published>2023-01-20T17:14:19+00:00</published><title>Trying to get Cisco switch uptime and not having any success</title></entry><entry><author><name>/u/YB_USherb</name><uri>https://www.reddit.com/user/YB_USherb</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>I&#39;m running a command which return stdout such as:</p> <p>param1: value1</p> <p>param2: value2</p> <p>param3: value3</p> <p>I want to retry this command until rc is 0 (fine), param2 value is different than a string (ex: not &quot;N/A&quot;) and param2 value is greated than a datetime in format YYYYMMDDHHMMSS</p> <p>I&#39;ve been banging my head on a wall to do this within a single command task/step and not with tons of code. I&#39;m used to Perl but not so much to ansible</p> <p>Any help would be appreciated for condition 2 and 3</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/YB_USherb"> /u/YB_USherb </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10h8lbn/running_a_command_until_3_conditions_are_met/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10h8lbn/running_a_command_until_3_conditions_are_met/">[comments]</a></span></content><id>t3_10h8lbn</id><link href="https://www.reddit.com/r/ansible/comments/10h8lbn/running_a_command_until_3_conditions_are_met/" /><updated>2023-01-20T21:23:50+00:00</updated><published>2023-01-20T21:23:50+00:00</published><title>Running a command until 3 conditions are met</title></entry><entry><author><name>/u/amarao_san</name><uri>https://www.reddit.com/user/amarao_san</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Is someone using it already? I&#39;m more or less see utility in it, but would really appreciate feedback on engineering and look-n-feel before diving into it.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/amarao_san"> /u/amarao_san </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10gwmhn/ansiblerunbook/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10gwmhn/ansiblerunbook/">[comments]</a></span></content><id>t3_10gwmhn</id><link href="https://www.reddit.com/r/ansible/comments/10gwmhn/ansiblerunbook/" /><updated>2023-01-20T13:12:11+00:00</updated><published>2023-01-20T13:12:11+00:00</published><title>ansible-runbook</title></entry><entry><author><name>/u/Pigge123</name><uri>https://www.reddit.com/user/Pigge123</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>It seems that you cant use a template with a survey configured in a workflow? Or to be more exact i need to enter the value in the survey before adding it. This means that i need to remove the survey from the template and configure it in the workflow. No problem with that but there are scenarios where just want to run one of the task. Does that mean i have to create a copy of the template for use with workbook and one to run it standalone? Or do you have any other solution?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Pigge123"> /u/Pigge123 </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10gx6dl/survey_in_awx_and_workflow/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10gx6dl/survey_in_awx_and_workflow/">[comments]</a></span></content><id>t3_10gx6dl</id><link href="https://www.reddit.com/r/ansible/comments/10gx6dl/survey_in_awx_and_workflow/" /><updated>2023-01-20T13:38:04+00:00</updated><published>2023-01-20T13:38:04+00:00</published><title>Survey in awx and workflow</title></entry><entry><author><name>/u/yetipants</name><uri>https://www.reddit.com/user/yetipants</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>EDIT: SOLVED BY REINSTALLING ANSIBLE.NETCOMMON MODULE after days of hating my life</p> <p>Hi everyone,</p> <p>This will be my second post about ssh proxy issues in a few days, so I&#39;m sorry for that.</p> <p>Basically I want to run ansible-playbooks via ssh-proxy/bastion.SSH works fine when I run it like this:</p> <pre><code>ssh -oKexAlgorithms=diffie-hellman-group-exchange-sha1 -oHostKeyAlgorithms=ssh-rsa -o &quot;ProxyCommand ssh -W %h:%p -q proxyuser@proxy&quot; switchuser@switch </code></pre> <p>But when I run playbook with these arguments in inventory I get auth failed:</p> <pre><code>CAMPUS_IOS: vars: ansible_network_os: cisco.ios.ios ansible_connection: ansible.netcommon.network_cli ansible_port: 22 ansible_user: switchuser ansible_password: switchpassword ansible_network_cli_ssh_type: paramiko ansible_ssh_common_args: &#39;-oKexAlgorithms=diffie-hellman-group-exchange-sha1 -oHostKeyAlgorithms=ssh-rsa -o &quot;ProxyCommand ssh -W %h:%p -q proxyuser@proxy&quot;&#39; </code></pre> <p>This is what it looks like in the logs on the switch when I run the ansible playbook:</p> <pre><code>Jan 20 13:27:59: SSH1: starting SSH control process Jan 20 13:27:59: SSH1: sent protocol version id SSH-2.0-Cisco-1.25 Jan 20 13:27:59: SSH1: protocol version id is - SSH-2.0-paramiko_2.12.0 Jan 20 13:27:59: SSH2 1: kexinit sent: kex algo = diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1 Jan 20 13:27:59: SSH2 1: Server certificate trustpoint not found. Skipping hostkey algo = x509v3-ssh-rsa Jan 20 13:27:59: SSH2 1: kexinit sent: hostkey algo = ssh-rsa Jan 20 13:27:59: SSH2 1: kexinit sent: encryption algo = aes128-ctr,aes192-ctr,aes256-ctr Jan 20 13:27:59: SSH2 1: kexinit sent: mac algo = hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96 Jan 20 13:27:59: SSH2 1: send:packet of length 312 (length also includes padlen of 4) Jan 20 13:27:59: SSH2 1: SSH2_MSG_KEXINIT sent Jan 20 13:27:59: SSH2 1: ssh_receive: 536 bytes received Jan 20 13:27:59: SSH2 1: input: total packet length of 1168 bytes Jan 20 13:27:59: SSH2 1: partial packet length(block size)8 bytes,needed 1160 bytes, maclen 0 Jan 20 13:27:59: SSH2 1: ssh_receive: 536 bytes received Jan 20 13:27:59: SSH2 1: partial packet length(block size)8 bytes,needed 1160 bytes, maclen 0 Jan 20 13:27:59: SSH2 1: ssh_receive: 120 bytes received Jan 20 13:27:59: SSH2 1: partial packet length(block size)8 bytes,needed 1160 bytes, maclen 0 Jan 20 13:27:59: SSH2 1: input: padlength 5 bytes Jan 20 13:27:59: SSH2 1: SSH2_MSG_KEXINIT received Jan 20 13:27:59: SSH2 1: kex: client-&gt;server enc:aes128-ctr mac:hmac-sha2-256 Jan 20 13:27:59: SSH2 1: kex: server-&gt;client enc:aes128-ctr mac:hmac-sha2-256 Jan 20 13:27:59: SSH2 1: Using kex_algo = diffie-hellman-group-exchange-sha1 Jan 20 13:27:59: SSH2 1: input: total packet length of 24 bytes Jan 20 13:27:59: SSH2 1: partial packet length(block size)8 bytes,needed 16 bytes, maclen 0 Jan 20 13:27:59: SSH2 1: input: padlength 6 bytes Jan 20 13:27:59: SSH2 1: SSH2_MSG_KEX_DH_GEX_REQUEST received Jan 20 13:27:59: SSH2 1: Range sent by client is - 1024 &lt; 2048 &lt; 8192 Jan 20 13:27:59: SSH2 1: Modulus size established : 2048 bits Jan 20 13:27:59: SSH2 1: send:packet of length 280 (length also includes padlen of 8) Jan 20 13:27:59: SSH2 1: expecting SSH2_MSG_KEX_DH_GEX_INIT Jan 20 13:28:00: SSH2 1: ssh_receive: 272 bytes received Jan 20 13:28:00: SSH2 1: input: total packet length of 272 bytes Jan 20 13:28:00: SSH2 1: partial packet length(block size)8 bytes,needed 264 bytes, maclen 0 Jan 20 13:28:00: SSH2 1: input: padlength 6 bytes Jan 20 13:28:00: SSH2 1: SSH2_MSG_KEXDH_INIT received Jan 20 13:28:00: SSH2 1: signature length 271 Jan 20 13:28:00: SSH2 1: send:packet of length 832 (length also includes padlen of 8) Jan 20 13:28:00: SSH2: kex_derive_keys complete Jan 20 13:28:00: SSH2 1: send:packet of length 16 (length also includes padlen of 10) Jan 20 13:28:00: SSH2 1: newkeys: mode 1 Jan 20 13:28:00: SSH2 1: SSH2_MSG_NEWKEYS sent Jan 20 13:28:00: SSH2 1: waiting for SSH2_MSG_NEWKEYS Jan 20 13:28:00: SSH2 1: ssh_receive: 16 bytes received Jan 20 13:28:00: SSH2 1: input: total packet length of 16 bytes Jan 20 13:28:00: SSH2 1: partial packet length(block size)8 bytes,needed 8 bytes, maclen 0 Jan 20 13:28:00: SSH2 1: input: padlength 10 bytes Jan 20 13:28:00: SSH2 1: newkeys: mode 0 Jan 20 13:28:00: SSH2 1: SSH2_MSG_NEWKEYS received Jan 20 13:28:00: SSH2 1: ssh_receive: 64 bytes received Jan 20 13:28:00: SSH2 1: input: total packet length of 32 bytes Jan 20 13:28:00: SSH2 1: partial packet length(block size)16 bytes,needed 16 bytes, maclen 32 Jan 20 13:28:00: SSH2 1: MAC compared for #4 :ok Jan 20 13:28:00: SSH2 1: input: padlength 10 bytes Jan 20 13:28:00: SSH2 1: send:packet of length 32 (length also includes padlen of 10) Jan 20 13:28:00: SSH2 1: computed MAC for sequence no.#4 type 6 Jan 20 13:28:00: SSH2 1: Authentications that can continue = publickey,keyboard-interactive,password Jan 20 13:28:00: SSH2 1: ssh_receive: 536 bytes received Jan 20 13:28:00: SSH2 1: input: total packet length of 896 bytes BJVSWA02a01# Jan 20 13:28:00: SSH2 1: partial packet length(block size)16 bytes,needed 880 bytes, maclen 32 Jan 20 13:28:00: SSH2 1: ssh_receive: 392 bytes received Jan 20 13:28:00: SSH2 1: partial packet length(block size)16 bytes,needed 880 bytes, maclen 32 Jan 20 13:28:00: SSH2 1: MAC compared for #5 :ok Jan 20 13:28:00: SSH2 1: input: padlength 10 bytes Jan 20 13:28:00: SSH2 1: Using method = publickey Jan 20 13:28:00: SSH2 1: Received publickey algo = rsa-sha2-512 Jan 20 13:28:00: SSH2 1: Unsupported public key algorithm rsa-sha2-512 in SSH2_MSG_USERAUTH_REQUEST Jan 20 13:28:00: SSH1: password authentication failed for switchuser Jan 20 13:28:00: SSH2 0: send:packet of length 4480 (length also includes padlen of 5) Jan 20 13:28:00: SSH2 0: computed MAC for sequence no.#1687 type 94 Jan 20 13:28:00: SSH2 0: send:packet of length 32 (length also includes padlen of 4) Jan 20 13:28:00: SSH2 0: computed MAC for sequence no.#1688 type 94 BJVSWA02a01# Jan 20 13:28:01: SSH2 0: send:packet of length 1008 (length also includes padlen of 9) Jan 20 13:28:01: SSH2 0: computed MAC for sequence no.#1689 type 94 Jan 20 13:28:01: SSH2 0: send:packet of length 32 (length also includes padlen of 4) Jan 20 13:28:01: SSH2 0: computed MAC for sequence no.#1690 type 94 Jan 20 13:28:02: SSH2 1: Authentications that can continue = publickey,keyboard-interactive,password Jan 20 13:28:02: SSH2 1: send:packet of length 64 (length also includes padlen of 14) Jan 20 13:28:02: SSH2 1: computed MAC for sequence no.#5 type 51 Jan 20 13:28:02: SSH2 1: ssh_receive: 64 bytes received BJVSWA02a01# Jan 20 13:28:02: SSH2 1: input: total packet length of 32 bytes Jan 20 13:28:02: SSH2 1: partial packet length(block size)16 bytes,needed 16 bytes, maclen 32 Jan 20 13:28:02: SSH2 1: MAC compared for #6 :ok Jan 20 13:28:02: SSH2 1: input: padlength 10 bytes Jan 20 13:28:02: SSH2 1: send:packet of length 80 (length also includes padlen of 16) Jan 20 13:28:02: SSH2 1: computed MAC for sequence no.#6 type 1 Jan 20 13:28:02: SSH1: Session disconnected - error 0x07 </code></pre> <p>From what I understand from this it seems like ansible is passing public ssh keys and not username/password, but I am really stuck and all help would be greatly appreciated.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/yetipants"> /u/yetipants </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10gvrsb/ssh_proxy_debugging/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10gvrsb/ssh_proxy_debugging/">[comments]</a></span></content><id>t3_10gvrsb</id><link href="https://www.reddit.com/r/ansible/comments/10gvrsb/ssh_proxy_debugging/" /><updated>2023-01-20T12:30:27+00:00</updated><published>2023-01-20T12:30:27+00:00</published><title>ssh proxy debugging</title></entry><entry><author><name>/u/timmay545</name><uri>https://www.reddit.com/user/timmay545</uri></author><category term="ansible" label="r/ansible"/><content type="html">&#32; submitted by &#32; <a href="https://www.reddit.com/user/timmay545"> /u/timmay545 </a> <br/> <span><a href="/r/Netbox/comments/10gl73g/ansible_tower_awx_integration/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10gl87a/ansible_tower_awx_integration/">[comments]</a></span></content><id>t3_10gl87a</id><link href="https://www.reddit.com/r/ansible/comments/10gl87a/ansible_tower_awx_integration/" /><updated>2023-01-20T02:46:14+00:00</updated><published>2023-01-20T02:46:14+00:00</published><title>Ansible Tower / AWX integration?</title></entry><entry><author><name>/u/LarrBearLV</name><uri>https://www.reddit.com/user/LarrBearLV</uri></author><category term="ansible" label="r/ansible"/><content type="html"><!-- SC_OFF --><div class="md"><p>Just wondering if anyone is finding it useful? Went to set it up today and ran into errors installing pybatfish. Panda wheels not installing. Trying to determine if I should dig deeper into the issue or let it go based on user feedback.</p> <p>Edit: got pybatfish installed. Had to install &quot;python3-dev&quot; to get it to work.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/LarrBearLV"> /u/LarrBearLV </a> <br/> <span><a href="https://www.reddit.com/r/ansible/comments/10gcwer/anyone_use_the_batfish_modules_for_network/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ansible/comments/10gcwer/anyone_use_the_batfish_modules_for_network/">[comments]</a></span></content><id>t3_10gcwer</id><link href="https://www.reddit.com/r/ansible/comments/10gcwer/anyone_use_the_batfish_modules_for_network/" /><updated>2023-01-19T20:52:50+00:00</updated><published>2023-01-19T20:52:50+00:00</published><title>Anyone use the Batfish modules for network configuration analysis and testing?</title></entry></feed> |