Loading content/ansible-example-role.rst +21 −0 Original line number Diff line number Diff line Loading @@ -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`. Loading
content/ansible-example-role.rst +21 −0 Original line number Diff line number Diff line Loading @@ -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`.