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