| 1 |
- name: install "{{ astream_name }}" module |
| 2 |
dnf: |
| 3 |
name: "{{ astream_name }}" |
| 4 |
state: present |
| 5 |
register: dnf_result |
| 6 |
|
| 7 |
- name: verify installation of "{{ astream_name }}" module |
| 8 |
assert: |
| 9 |
that: |
| 10 |
- "not dnf_result.failed" |
| 11 |
- "dnf_result.changed" |
| 12 |
|
| 13 |
- name: install "{{ astream_name }}" module again |
| 14 |
dnf: |
| 15 |
name: "{{ astream_name }}" |
| 16 |
state: present |
| 17 |
register: dnf_result |
| 18 |
|
| 19 |
- name: verify installation of "{{ astream_name }}" module again |
| 20 |
assert: |
| 21 |
that: |
| 22 |
- "not dnf_result.failed" |
| 23 |
- "not dnf_result.changed" |
| 24 |
|
| 25 |
- name: uninstall "{{ astream_name }}" module |
| 26 |
dnf: |
| 27 |
name: "{{ astream_name }}" |
| 28 |
state: absent |
| 29 |
register: dnf_result |
| 30 |
|
| 31 |
- name: verify uninstallation of "{{ astream_name }}" module |
| 32 |
assert: |
| 33 |
that: |
| 34 |
- "not dnf_result.failed" |
| 35 |
- "dnf_result.changed" |
| 36 |
|
| 37 |
- name: uninstall "{{ astream_name }}" module again |
| 38 |
dnf: |
| 39 |
name: "{{ astream_name }}" |
| 40 |
state: absent |
| 41 |
register: dnf_result |
| 42 |
|
| 43 |
- name: verify uninstallation of "{{ astream_name }}" module again |
| 44 |
assert: |
| 45 |
that: |
| 46 |
- "not dnf_result.failed" |
| 47 |
- "not dnf_result.changed" |
| 48 |
|
| 49 |
- name: install "{{ astream_name_no_stream }}" module without providing stream |
| 50 |
dnf: |
| 51 |
name: "{{ astream_name_no_stream }}" |
| 52 |
state: present |
| 53 |
register: dnf_result |
| 54 |
|
| 55 |
- name: verify installation of "{{ astream_name_no_stream }}" module without providing stream |
| 56 |
assert: |
| 57 |
that: |
| 58 |
- "not dnf_result.failed" |
| 59 |
- "dnf_result.changed" |
| 60 |
|
| 61 |
- name: install "{{ astream_name_no_stream }}" module again without providing stream |
| 62 |
dnf: |
| 63 |
name: "{{ astream_name_no_stream }}" |
| 64 |
state: present |
| 65 |
register: dnf_result |
| 66 |
|
| 67 |
- name: verify installation of "{{ astream_name_no_stream }}" module again without providing stream |
| 68 |
assert: |
| 69 |
that: |
| 70 |
- "not dnf_result.failed" |
| 71 |
- "not dnf_result.changed" |
| 72 |
|
| 73 |
- name: uninstall "{{ astream_name_no_stream }}" module without providing stream |
| 74 |
dnf: |
| 75 |
name: "{{ astream_name_no_stream }}" |
| 76 |
state: absent |
| 77 |
register: dnf_result |
| 78 |
|
| 79 |
- name: verify uninstallation of "{{ astream_name_no_stream }}" module without providing stream |
| 80 |
assert: |
| 81 |
that: |
| 82 |
- "not dnf_result.failed" |
| 83 |
- "dnf_result.changed" |
| 84 |
|
| 85 |
- name: uninstall "{{ astream_name_no_stream }}" module again without providing stream |
| 86 |
dnf: |
| 87 |
name: "{{ astream_name_no_stream }}" |
| 88 |
state: absent |
| 89 |
register: dnf_result |
| 90 |
|
| 91 |
- name: verify uninstallation of "{{ astream_name_no_stream }}" module again without providing stream |
| 92 |
assert: |
| 93 |
that: |
| 94 |
- "not dnf_result.failed" |
| 95 |
- "not dnf_result.changed" |
| 96 |
|
| 97 |
- name: install "{{ astream_name }}" module with state=latest |
| 98 |
dnf: |
| 99 |
name: "{{ astream_name }}" |
| 100 |
state: latest |
| 101 |
register: dnf_result |
| 102 |
|
| 103 |
- name: verify installation of "{{ astream_name }}" module with state=latest |
| 104 |
assert: |
| 105 |
that: |
| 106 |
- dnf_result is not failed |
| 107 |
- dnf_result is changed |
| 108 |
|
| 109 |
- name: install "{{ astream_name }}" module with state=latest again (idempotency) |
| 110 |
dnf: |
| 111 |
name: "{{ astream_name }}" |
| 112 |
state: latest |
| 113 |
register: dnf_result |
| 114 |
|
| 115 |
- name: verify installation of "{{ astream_name }}" module with state=latest again (idempotency) |
| 116 |
assert: |
| 117 |
that: |
| 118 |
- dnf_result is not failed |
| 119 |
- dnf_result is not changed |
| 120 |
|
| 121 |
- name: uninstall "{{ astream_name }}" module |
| 122 |
dnf: |
| 123 |
name: "{{ astream_name }}" |
| 124 |
state: absent |
| 125 |
|
| 126 |
- name: install "{{ astream_name_no_stream }}" module with state=latest without providing stream |
| 127 |
dnf: |
| 128 |
name: "{{ astream_name_no_stream }}" |
| 129 |
state: latest |
| 130 |
register: dnf_result |
| 131 |
|
| 132 |
- name: verify installation of "{{ astream_name_no_stream }}" module with state=latest without providing stream |
| 133 |
assert: |
| 134 |
that: |
| 135 |
- dnf_result is not failed |
| 136 |
- dnf_result is changed |
| 137 |
|
| 138 |
- name: install "{{ astream_name_no_stream }}" module with state=latest again without providing stream (idempotency) |
| 139 |
dnf: |
| 140 |
name: "{{ astream_name_no_stream }}" |
| 141 |
state: latest |
| 142 |
register: dnf_result |
| 143 |
|
| 144 |
- name: verify installation of "{{ astream_name_no_stream }}" module with state=latest again without providing stream (idempotency) |
| 145 |
assert: |
| 146 |
that: |
| 147 |
- dnf_result is not failed |
| 148 |
- dnf_result is not changed |
| 149 |
|
| 150 |
- name: uninstall "{{ astream_name_no_stream }}" module |
| 151 |
dnf: |
| 152 |
name: "{{ astream_name_no_stream }}" |
| 153 |
state: absent |