diff --git a/meta/main.yml b/meta/main.yml index e22f4e836a3c46a95e906533a0fd5976a885775c..0e2311da8f11a02ffa8340f54a8010c824ecc524 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -12,4 +12,4 @@ galaxy_info: dependencies: - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap scm: git - name: bootstrap + role: bootstrap diff --git a/molecule.yml b/molecule.yml index 0e6fa4796099a5c1be84f0bdaa1420fb298a35bc..a62eaa4d8d288b4fcf7f6222a439687f674994f9 100644 --- a/molecule.yml +++ b/molecule.yml @@ -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: diff --git a/tasks/main.yml b/tasks/main.yml index 066751cb957b869527eef43b28af7dbd81ba96d2..d519bebeb40afd7912d654313c40ef6f5775c75a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,7 +1,8 @@ --- # 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' diff --git a/tests/test_example.py b/tests/test_example.py index a38c7bad4a16b5cd6a5e071ede073a10c7694154..12d4c7a5294fc8128e8ae695e8afaaa62a002f9b 100644 --- a/tests/test_example.py +++ b/tests/test_example.py @@ -1,6 +1,7 @@ def test_example(Command): assert Command('uname').rc == 0 + def test_root(Command, Sudo): with Sudo(): assert Command('whoami').stdout == 'root'