Skip to content
Snippets Groups Projects
Commit 87147913 authored by nimrod's avatar nimrod
Browse files

- Added a section on boilerplate/ scaffloding to the ansible-example-role post.

parent 84d96490
No related branches found
No related tags found
No related merge requests found
......@@ -82,3 +82,24 @@ the option to run any hypervisor. For me it's a deal breaker because I depend on
VirtualBox (I need to test on different OSes, not just Linux). If LXC serves
your needs than you should be able to run Vagrant with the LXC provider and
therefore Molecule. For me it's a deal breaker.
A final word on boiler-plate
----------------------------
In a previous post I mentioned that I have several repositories that have the
same boiler-plate and how I plan on dealing with that. Now, this is the first
attempt at this. The idea is having a base repo that I clone, add another remote
and voilà, a new project with the scaffloding already there. For bonus points, I
can update the base repo and pull those changes in all projects. Here's how I do
it:
.. code:: shell
git clone https://www.shore.co.il/git/ansible-role-example ansible-role-name
cd ansible-role-name
git remote rename origin ansible-role-example
git remote add origin git@example.com/path/to/repo
git push -u origin master
And in case I update the ansible-role-example repo than I pull the updates by
running :code:`git pull ansible-role-example master`.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment