Category Archives: ansible

Jinja2: Encountered Unknown Tag

Overview I was running an Ansible playbook and one of the templates failed with the following error: Jinja2 uses a brace + percent and a percent + brace to identify Jinja2 commands that are used when preprocessing a template. This … Continue reading

Posted in ansible, Computers | Tagged , , , | Leave a comment

Ansible Patterns

Overview One of the cool things with Ansible are Patterns. With Patterns, you can combine entries in your inventory file. Instead of having a bunch of tags specific to each site, you can instead have a list of servers in … Continue reading

Posted in ansible, Computers | Tagged , | Leave a comment

Ansible Tags – A Story

Started a new job back in October. The team is just me and another guy and the boss. And the other guy quit in December. The real good thing is it’s a small single project shop and pretty much all … Continue reading

Posted in ansible, Computers | Tagged , | Leave a comment

Ansible Tags

Overview Simply enough, Ansible Tags let you run specific tasks in a play. If you have a lengthy playbook or are testing tasks within a playbook, you can assign tags to tasks that let you run a specific task vs … Continue reading

Posted in ansible, Computers | Tagged , | Leave a comment

Ansible Handlers

Overview Ansible Handlers are tasks that are only performed when a calling task has successfully changed something. Updating Docker Say for example you want to try and update docker. There isn’t always an update available but if there is an … Continue reading

Posted in ansible, Computers | Tagged , | Leave a comment