Commit 053e7fe1 authored by nimrod's avatar nimrod
Browse files

- Set the Python interpeter path only for this role (now the only task

that requires raw commands is installing Python).
parent 8235980f
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -7,15 +7,18 @@
  failed_when: "'error' in openbsd_pkg_add_python.stdout|lower"
  changed_when: "'py-pip' in openbsd_pkg_add_python.stdout"

- name: Symlink python
  raw: ln -fs /usr/local/bin/python2.7 /usr/bin/python
  changed_when: False # Can't tell if a change was made.
  tags:
      - skip_ansible_lint

- name: Gather facts
  setup:

- name: Symlink python
  file:
      path: /usr/bin/python
      src: /usr/local/bin/python2.7
      state: link
      owner: root
      group: 0
      mode: 0o0755

- name: Configure pkg
  lineinfile:
    dest: /etc/pkg.conf
+1 −0
Original line number Diff line number Diff line
---
# vars file for ansible-role-openbsd-bootstrap
ansible_python_interpreter: '/usr/local/bin/python2.7'