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

Adjustments to OpenBSD bootstrap to run on both platforms.

parent 5f574f79
Branches
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
- name: Restart ssh - name: Restart ssh
service: service:
name: ssh name: '{{ ssh_daemon[ansible_os_family] }}'
state: restarted state: restarted
- name: Restart Collectd - name: Restart Collectd
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- name: Disable root account - name: Disable root account
user: user:
name: root name: root
password: '' password: '*************'
register: lock_root register: lock_root
changed_when: not (lock_root.stderr is defined and 'no changes' in lock_root.stderr) changed_when: not (lock_root.stderr is defined and 'no changes' in lock_root.stderr)
......
...@@ -7,11 +7,10 @@ ...@@ -7,11 +7,10 @@
changed_when: "'python' in openbsd_pkg_add_python.stdout" changed_when: "'python' in openbsd_pkg_add_python.stdout"
- name: Symlink python - name: Symlink python
file: raw: ln -s /usr/local/bin/python2.7 /usr/bin/python
path: /usr/bin/python register: symlink_python
src: /usr/local/bin/python2.7 changed_when: not 'File exists' in symlink_python.stderr
state: link failed_when: symlink_python|failed and not 'File exists' in symlink_python.stdout_lines[0]
force: yes
- name: Gather facts - name: Gather facts
setup: setup:
......
...@@ -32,10 +32,12 @@ openbsd_collectd_version: ...@@ -32,10 +32,12 @@ openbsd_collectd_version:
'5.8': 'collectd-5.5.0p1' '5.8': 'collectd-5.5.0p1'
openbsd_pkg_mirror: http://www.mirrorservice.org/pub openbsd_pkg_mirror: http://www.mirrorservice.org/pub
ansible_python_interpreter: '{{ "/usr/local/bin/python2.7" if openbsd_bootstrap is defined else omit }}'
update_ca_certificates: update_ca_certificates:
OpenBSD: /usr/local/sbin/update-ca-certificates OpenBSD: /usr/local/sbin/update-ca-certificates
Debian: /usr/sbin/update-ca-certificates Debian: /usr/sbin/update-ca-certificates
ca_store: ca_store:
OpenBSD: /etc/ssl/cert.pem OpenBSD: /etc/ssl/cert.pem
Debian: /etc/ssl/certs/ca-certificates.crt Debian: /etc/ssl/certs/ca-certificates.crt
ssh_daemon:
OpenBSD: sshd
Debian: ssh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment