Tag: Ansible

  • Using Assert to Create a Test Suite

    Within software development circles, there’s an idea called “Test Driven Development” and since the basic idea behind Ansible is to treat “infrastructure as code” – why wouldn’t you want to do some testing to verify the changes you intended to make are in fact made? This is where the Assert statement in Ansible comes in, […]

  • Ansible and Templated Commands

    I was working to automate some checks for the CIS Docker CE benchmark and was having trouble passing commands that resemble the following: Trying to pass that to either a shell or a command statement in ansible results in a templating error. So what’s the problem? Basically, you’re passing a command that has its own […]