<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Posts on deekayen blog</title>
    <link>https://blog.deekayen.com/posts/</link>
    <description>Recent content in Posts on deekayen blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Mon, 04 Oct 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.deekayen.com/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Check Ansible syntax</title>
      <link>https://blog.deekayen.com/posts/ansible-syntax-check/</link>
      <pubDate>Mon, 04 Oct 2021 00:00:00 +0000</pubDate>
      
      <guid>https://blog.deekayen.com/posts/ansible-syntax-check/</guid>
      <description>Syntax Check Ansible has a built-in utility to validate the syntax of your yaml files. Add --syntax-check to your ansible-playbook execution and the yaml parser will validate your file formatting without running tasks.
1  $ ansible-playbook ping.yml --syntax-check   If your playbook passes the check, the output is rather boring.
1 2  $ ansible-playbook unarchive.yaml --syntax-check playbook: unarchive.yaml   The interpreter for --syntax-check strictly cares about whether it can interpret raw yaml and cares nothing for best practices like naming all your tasks, deprecated modules, idempotency, missing metadata, or spacing in your variable invocations.</description>
    </item>
    
    <item>
      <title>Troubleshooting Ansible tests</title>
      <link>https://blog.deekayen.com/posts/troubleshooting/</link>
      <pubDate>Mon, 04 Oct 2021 00:00:00 +0000</pubDate>
      
      <guid>https://blog.deekayen.com/posts/troubleshooting/</guid>
      <description>Troubleshooting Molecule Ignoring errors Sometimes a task or handler will fail in Molecule tests which you know won&amp;rsquo;t fail in your live environment. To ignore the failure just for the Molecule environment, add a test for the value of MOLECULE_FILE in the runtime environment.
1 2 3 4 5 6  - name:Start service.service:name:special-agent-snoopystate:startedlisten:start-serviceignore_errors:lookup(&amp;#39;env&amp;#39;, &amp;#39;MOLECULE_FILE&amp;#39;)  Debug messages First, turn on debug mode in Molecule molecule --debug test.
When an Ansible stage in executed by Molecule against your test instance, it may fail, un-helpfully telling you that it cannot display the error because no_log: true.</description>
    </item>
    
  </channel>
</rss>
