Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
common
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ansible
common
Commits
7e26bdc6
Commit
7e26bdc6
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Added support for bootstrapping OpenBSD (for running Ansible in the first place).
parent
973f1359
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/main.yml
+3
-0
3 additions, 0 deletions
tasks/main.yml
tasks/openbsd_bootstrap.yml
+30
-0
30 additions, 0 deletions
tasks/openbsd_bootstrap.yml
vars/main.yml
+2
-0
2 additions, 0 deletions
vars/main.yml
with
35 additions
and
0 deletions
tasks/main.yml
+
3
−
0
View file @
7e26bdc6
---
# tasks file for ansible_common
-
include
:
openbsd_bootstrap.yml
when
:
openbsd_bootstrap is defined
-
name
:
Assert
assert
:
that
:
ansible_os_family in [ 'Debian', 'OpenBSD' ]
...
...
This diff is collapsed.
Click to expand it.
tasks/openbsd_bootstrap.yml
0 → 100644
+
30
−
0
View file @
7e26bdc6
---
# Bootstrap an OpenBSD machine to be able to run Ansible on it.
-
name
:
Install Python
raw
:
"
PKG_PATH={{
openbsd_pkg_mirror
}}/OpenBSD/$(uname
-r)/packages/$(arch
-s)/
/usr/sbin/pkg_add
py-pip"
register
:
openbsd_pkg_add_python
changed_when
:
"
'python'
in
openbsd_pkg_add_python.stdout"
-
name
:
Symlink python
file
:
path
:
/usr/bin/python
src
:
/usr/local/bin/python2.7
state
:
link
force
:
yes
-
name
:
Gather facts
setup
:
-
name
:
Configure pkg
lineinfile
:
dest
:
/etc/pkg.conf
line
:
'
installpath
=
{{
openbsd_pkg_mirror
}}/OpenBSD/{{
ansible_distribution_release
}}/packages/{{
ansible_architecture
}}/'
regexp
:
'
^installpath
='
state
:
present
create
:
yes
-
name
:
Install Bash
openbsd_pkg
:
name
:
bash
state
:
latest
This diff is collapsed.
Click to expand it.
vars/main.yml
+
2
−
0
View file @
7e26bdc6
...
...
@@ -30,3 +30,5 @@ openbsd_collectd_version:
'
5.6'
:
'
collectd-4.10.2p4'
'
5.7'
:
'
collectd-5.4.1p1'
'
5.8'
:
'
collectd-5.5.0p1'
openbsd_pkg_mirror
:
http://www.mirrorservice.org/pub
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