Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
blog
Commits
87147913
Commit
87147913
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- 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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/ansible-example-role.rst
+21
-0
21 additions, 0 deletions
content/ansible-example-role.rst
with
21 additions
and
0 deletions
content/ansible-example-role.rst
+
21
−
0
View file @
87147913
...
...
@@ -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`.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment