Loading molecule.yml +2 −2 Original line number Diff line number Diff line Loading @@ -11,9 +11,9 @@ vagrant: type: virtualbox platforms: - name: openbsd60 box: kaorimatz/openbsd-6.0-amd64 box: fnichol/openbsd-6.0-i386 - name: openbsd56 box: tmatilai/openbsd-5.6 box: fnichol/openbsd-5.6-i386 instances: - name: openbsd-bootstrap options: Loading tasks/main.yml +7 −0 Original line number Diff line number Diff line --- # tasks file for openbsd-bootstrap - name: Check if sudo is available raw: 'which sudo > /dev/null 2>/dev/null && echo sudo || echo doas' changed_when: False become: False register: openbsd_bootstrap_check_sudo check_mode: False - name: Install Python raw: "PKG_PATH={{ openbsd_pkg_mirror }}/OpenBSD/$(uname -r)/packages/$(arch -s)/ /usr/sbin/pkg_add -Iz python-2.7" register: openbsd_pkg_add_python Loading vars/main.yml +1 −0 Original line number Diff line number Diff line --- # vars file for openbsd-bootstrap ansible_python_interpreter: '/usr/local/bin/python2.7' ansible_become_method: '{{ openbsd_bootstrap_check_sudo.stdout_lines.0 if openbsd_bootstrap_check_sudo is defined else None }}' Loading
molecule.yml +2 −2 Original line number Diff line number Diff line Loading @@ -11,9 +11,9 @@ vagrant: type: virtualbox platforms: - name: openbsd60 box: kaorimatz/openbsd-6.0-amd64 box: fnichol/openbsd-6.0-i386 - name: openbsd56 box: tmatilai/openbsd-5.6 box: fnichol/openbsd-5.6-i386 instances: - name: openbsd-bootstrap options: Loading
tasks/main.yml +7 −0 Original line number Diff line number Diff line --- # tasks file for openbsd-bootstrap - name: Check if sudo is available raw: 'which sudo > /dev/null 2>/dev/null && echo sudo || echo doas' changed_when: False become: False register: openbsd_bootstrap_check_sudo check_mode: False - name: Install Python raw: "PKG_PATH={{ openbsd_pkg_mirror }}/OpenBSD/$(uname -r)/packages/$(arch -s)/ /usr/sbin/pkg_add -Iz python-2.7" register: openbsd_pkg_add_python Loading
vars/main.yml +1 −0 Original line number Diff line number Diff line --- # vars file for openbsd-bootstrap ansible_python_interpreter: '/usr/local/bin/python2.7' ansible_become_method: '{{ openbsd_bootstrap_check_sudo.stdout_lines.0 if openbsd_bootstrap_check_sudo is defined else None }}'