Tips and quirks with ansible

Tips and quirks with ansible

acidjunk
February 11, 2016
1 min read

Recently I’m playing a lot with Ansible.

Some handy commands

ansible all -m command -a "uptime"
ansible all -i hosts -m setup

Install nginx

ansible all -i hosts -m yum "name=nginx state=present" -s

Deinstall it again

ansible all -i hosts -m yum "name=nginx state=absent" -s

Tags

Computerz nginx ansible