Files
ansible-freeipa/tests/hbacsvc/test_hbacsvc.yml
Thomas Woerner 28d8896be5 tests: Fix top name tags in tests
Most tests have simply been using the Tests as name, but this there is a
lack of information in automated runs. The name should be similar to the
test file name.
2020-02-11 10:59:30 +01:00

59 lines
1.4 KiB
YAML

---
- name: Test hbacsvc
hosts: ipaserver
become: true
gather_facts: false
tasks:
- name: Ensure HBAC Service for http is absent
ipahbacsvc:
ipaadmin_password: MyPassword123
name: http,tftp
state: absent
- name: Ensure HBAC Service for http is present
ipahbacsvc:
ipaadmin_password: MyPassword123
name: http
register: result
failed_when: not result.changed
- name: Ensure HBAC Service for http is present again
ipahbacsvc:
ipaadmin_password: MyPassword123
name: http
register: result
failed_when: result.changed
- name: Ensure HBAC Service for tftp is present
ipahbacsvc:
ipaadmin_password: MyPassword123
name: tftp
description: TFTP service
register: result
failed_when: not result.changed
- name: Ensure HBAC Service for tftp is present again
ipahbacsvc:
ipaadmin_password: MyPassword123
name: tftp
description: TFTP service
register: result
failed_when: result.changed
- name: Ensure HBAC Services for http and tftp are absent
ipahbacsvc:
ipaadmin_password: MyPassword123
name: http,tftp
state: absent
register: result
failed_when: not result.changed
- name: Ensure HBAC Services for http and tftp are absent again
ipahbacsvc:
ipaadmin_password: MyPassword123
name: http,tftp
state: absent
register: result
failed_when: result.changed