Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlabci-ansible
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker-images
gitlabci-ansible
Merge requests
!3
Resolve "Update README"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Update README"
3-update-readme
into
master
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Jens Heidbüchel
requested to merge
3-update-readme
into
master
5 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Closes
#3 (closed)
Edited
5 years ago
by
Jens Heidbüchel
0
0
Merge request reports
Compare
master
version 4
df149974
5 years ago
version 3
1d1d851f
5 years ago
version 2
624b67dd
5 years ago
version 1
11b17487
5 years ago
master (base)
and
latest version
latest version
c5a57b5d
5 commits,
5 years ago
version 4
df149974
4 commits,
5 years ago
version 3
1d1d851f
3 commits,
5 years ago
version 2
624b67dd
2 commits,
5 years ago
version 1
11b17487
1 commit,
5 years ago
1 file
+
35
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.rst
+
35
−
1
Options
Run ansible playbooks
=====================
This docker image can be used to run ansible playbooks with gitlab-ci.
This docker image can be used to run ansible playbooks interactively or with
gitlab-ci.
Update cycle
------------
The image gets updated every sunday in the early morning and is available by
the image name `jugit-registry.fz-juelich.de/docker-images/gitlabci-ansible`.
Interactive usage
-----------------
The image can also be used to run interactively.
.. code-block:: bash
$ docker run --rm -v $(pwd):/data -w /data jugit-registry.fz-juelich.de/docker-images/gitlabci-ansible ansible-playbook playbook.yml
will run `playbook.yml` in the current working directory. For simplification
this command can be added as a function to the resource file of the used shell:
.. code-block:: bash
docker-ansible() {
docker run --rm -v $(pwd):/data -w /data jugit-registry.fz-juelich.de/docker-images/gitlabci-ansible $@
}
With that the following usage is possible:
.. code-block:: bash
$ docker-ansible ansible-playbook playbook.yml
Aliases are of no use because `$(pwd)` gets evaluated at shell startup and will
be the same for the complete life cycle of the shell.
Loading