Ansible baby steps

Categories: ansible

A light introduction to Ansible, promoting best practices and install cowsay on Ubuntu 14.04. What the hell is Ansible you ask? Well, I’m here to help! Ansible is a tool to configure Linux (And Windows) servers via SSH and Python scripts. It allows you to write scripts in YAML and Python, which are executed against and on remote servers. Why should you use Ansible? You should use Ansible if you want to avoid tedious and error prone manual work. Read more...

Ansible gotcha: Playbook sudo vs task sudo

Categories: ansible

TL;DR;

When running a playbook with sudo: yes, it also runs the facts module with sudo, so ansible_user_dir will have the value of the root user, rather than the expected home directory of the ansible_ssh_user.

Read more...