Testing roles

29 views
Skip to first unread message

Matt WH

unread,
Feb 20, 2017, 11:48:15 AM2/20/17
to Ansible Project
Hi everyone,

I'm working on an Ansible setup where it would be extremely helpful to be able to test roles and changes to a role before they were moved into the roles folder used by ansible, as defined in the /etc/ansible/ansible.cfg file.  Ideally it could check all the roles in a specified folder for syntax to help prevent issues from getting into the "live" folder so to speak.  Does anyone know of a way to do this? Thank you!

Kai Stian Olstad

unread,
Feb 20, 2017, 2:32:41 PM2/20/17
to ansible...@googlegroups.com
Put the code in a version control system like Git.
Then you can have different feature branches that get merged in to
production branch when they are tested.

--
Kai Stian Olstad

Mischa ter Smitten

unread,
Feb 21, 2017, 2:19:39 PM2/21/17
to Ansible Project
I would also recommend automated testing using Travis-CI or Jenkins, see:

Reply all
Reply to author
Forward
0 new messages