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
|
2020-12-12 01:46:51 +01:00
|
|
|
include_vars: "{{ item }}"
|
|
|
|
with_first_found:
|
|
|
|
- files:
|
|
|
|
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
|
|
- "{{ ansible_facts.distribution }}.yml"
|
|
|
|
paths: ../vars
|
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"
|