For setting up Foreman itself check out the excellent ansible-module-foreman.
ansible-playbook --module-path . -c local -i localhost, example.yml
The file example.yml has an example.
Running the tests:
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.