Loading meta/main.yml +1 −1 Original line number Diff line number Diff line Loading @@ -12,4 +12,4 @@ galaxy_info: dependencies: - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap scm: git name: bootstrap role: bootstrap molecule.yml +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ vagrant: type: virtualbox platforms: - name: openbsd box: kaorimatz/openbsd-5.9-amd64 box: kaorimatz/openbsd-6.0-amd64 instances: - name: ansible-role-example options: Loading tasks/main.yml +3 −2 Original line number Diff line number Diff line --- # tasks file for ansible-role-example - assert: - name: Assertions assert: that: - ansible_os_family == 'OpenBSD' - ansible_distribution_release == '5.9' - ansible_distribution_release == '6.0' tests/test_example.py +1 −0 Original line number Diff line number Diff line def test_example(Command): assert Command('uname').rc == 0 def test_root(Command, Sudo): with Sudo(): assert Command('whoami').stdout == 'root' Loading
meta/main.yml +1 −1 Original line number Diff line number Diff line Loading @@ -12,4 +12,4 @@ galaxy_info: dependencies: - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap scm: git name: bootstrap role: bootstrap
molecule.yml +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ vagrant: type: virtualbox platforms: - name: openbsd box: kaorimatz/openbsd-5.9-amd64 box: kaorimatz/openbsd-6.0-amd64 instances: - name: ansible-role-example options: Loading
tasks/main.yml +3 −2 Original line number Diff line number Diff line --- # tasks file for ansible-role-example - assert: - name: Assertions assert: that: - ansible_os_family == 'OpenBSD' - ansible_distribution_release == '5.9' - ansible_distribution_release == '6.0'
tests/test_example.py +1 −0 Original line number Diff line number Diff line def test_example(Command): assert Command('uname').rc == 0 def test_root(Command, Sudo): with Sudo(): assert Command('whoami').stdout == 'root'