Geek · Things I've Learned

Ansible: Roles, Role Dependencies, and Variables

I just spent some time banging my head against Ansible, and thought I’d share in case anyone else runs across it: I have a Firefox role that allows you to define a Firefox profile with various plugins, config settings, and the like. And I have a work-from-home (WFH) role that, among other things, sets up… Continue reading Ansible: Roles, Role Dependencies, and Variables

Geek · Things I've Learned

Ansible: Running Commands in Dry-Run Mode in Check Mode

Say you have an Ansible playbook that invokes a command. Normally, that command executes when you run ansible normally, and doesn’t execute at all when you run ansible in check mode. But a lot of commands, like rsync have a -n or –dry-run argument that shows what would be done, without actually making any changes. So it… Continue reading Ansible: Running Commands in Dry-Run Mode in Check Mode