On 09/05/2017 09:04 AM, Ash Powell wrote:
Thanks for the links.

Watching the video, it mentions about storing the Playbook in a Git repo, but nothing about storing the roles in a Git repo.

I'm referring to the files that (by default) sit on "/etc/ansible/roles/"


I, personally, don't store anything under /etc/ansible (other than /etc/ansible/ansible.cfg).

I have a directory in my user home that has the following structure:

ansible/
  - group_vars/
  - hsot_vars/
  - library/
  - roles/
  - inventory
  - playlist1.yml
  - playlist2.yml
  ...

This whole directory is a git repository and I cd to that directory before running ansible-playbook.

So, just like you are suggesting, I can work on the roles or libraries or playlists on a develeopment machine (my workstation) and then I can push the repo and pull it down on the production server from which ansible is normally run.

I don't know that this is the best way, but it certainly works.

Steve

--
--------------------------------------------------------------------------
Steven Saner <[email protected]> KD0IJP
Andover, Kansas USA

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/17c21abd-4b3b-4e60-4a75-033ba6575637%40saner.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to