Local Playlists With Ansible

#ansible #sysadmin

I setup my dotfiles on new servers using an Ansible playbook and a simple shell script. I found a post outlining an easy way to target localhost only [1]

ansible-playbook -i "localhost," -c local helloworld.yml
-i INVENTORY, --inventory-file=INVENTORY
  specify inventory host file (default=/etc/ansible/hosts)

-c CONNECTION, --connection=CONNECTION
  connection type to use (default=smart)

[1] http://ansible.pickle.io/post/86598332429/running-ansible-playbook-in-localhost