2019-01-30 01:56:57 +01:00
|
|
|
# FUTURE - look at including AppStream support in our local repo
|
2019-07-03 17:11:20 +02:00
|
|
|
- name: Include distribution specific variables
|
|
|
|
include_vars: "{{ ansible_facts.distribution }}.yml"
|
2019-01-30 01:56:57 +01:00
|
|
|
|
|
|
|
- name: install "{{ astream_name }}" module
|
2018-11-09 00:15:11 +01:00
|
|
|
dnf:
|
2019-01-30 01:56:57 +01:00
|
|
|
name: "{{ astream_name }}"
|
2018-11-09 00:15:11 +01:00
|
|
|
state: present
|
|
|
|
register: dnf_result
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: verify installation of "{{ astream_name }}" module
|
2018-11-09 00:15:11 +01:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "dnf_result.changed"
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: install "{{ astream_name }}" module again
|
2018-11-09 00:15:11 +01:00
|
|
|
dnf:
|
2019-01-30 01:56:57 +01:00
|
|
|
name: "{{ astream_name }}"
|
2018-11-09 00:15:11 +01:00
|
|
|
state: present
|
|
|
|
register: dnf_result
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: verify installation of "{{ astream_name }}" module again
|
2018-11-09 00:15:11 +01:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "not dnf_result.changed"
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: uninstall "{{ astream_name }}" module
|
2018-11-09 00:15:11 +01:00
|
|
|
dnf:
|
2019-01-30 01:56:57 +01:00
|
|
|
name: "{{ astream_name }}"
|
2018-11-09 00:15:11 +01:00
|
|
|
state: absent
|
|
|
|
register: dnf_result
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: verify uninstallation of "{{ astream_name }}" module
|
2018-11-09 00:15:11 +01:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "dnf_result.changed"
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: uninstall "{{ astream_name }}" module again
|
2018-11-09 00:15:11 +01:00
|
|
|
dnf:
|
2019-01-30 01:56:57 +01:00
|
|
|
name: "{{ astream_name }}"
|
2019-01-23 22:52:03 +01:00
|
|
|
state: absent
|
2018-11-09 00:15:11 +01:00
|
|
|
register: dnf_result
|
|
|
|
|
2019-01-30 01:56:57 +01:00
|
|
|
- name: verify uninstallation of "{{ astream_name }}" module again
|
2018-11-09 00:15:11 +01:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "not dnf_result.changed"
|
2019-10-24 06:57:31 +02:00
|
|
|
|
|
|
|
- name: install "{{ astream_name_no_stream }}" module without providing stream
|
|
|
|
dnf:
|
|
|
|
name: "{{ astream_name_no_stream }}"
|
|
|
|
state: present
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify installation of "{{ astream_name_no_stream }}" module without providing stream
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "dnf_result.changed"
|
|
|
|
|
|
|
|
- name: install "{{ astream_name_no_stream }}" module again without providing stream
|
|
|
|
dnf:
|
|
|
|
name: "{{ astream_name_no_stream }}"
|
|
|
|
state: present
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify installation of "{{ astream_name_no_stream }}" module again without providing stream
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "not dnf_result.changed"
|
|
|
|
|
|
|
|
- name: uninstall "{{ astream_name_no_stream }}" module without providing stream
|
|
|
|
dnf:
|
|
|
|
name: "{{ astream_name_no_stream }}"
|
|
|
|
state: absent
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify uninstallation of "{{ astream_name_no_stream }}" module without providing stream
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "dnf_result.changed"
|
|
|
|
|
|
|
|
- name: uninstall "{{ astream_name_no_stream }}" module again without providing stream
|
|
|
|
dnf:
|
|
|
|
name: "{{ astream_name_no_stream }}"
|
|
|
|
state: absent
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify uninstallation of "{{ astream_name_no_stream }}" module again without providing stream
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "not dnf_result.changed"
|