How can you test(-run) an ansible role on your localhost?
So far I have done this on my ubuntu 16.04 machine:
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
$ ansible-galaxy install -p roles -r requirements.yml
Where requirements.yml
contains:
- src: https://github.com/florianutz/Ubuntu1604-CIS.git
This installs that role successfully. Now, I'm not sure what to do next. I just want to apply that role on localhost. Is there a simple way to do that?