mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Fixes for dnf and user integration tests. (#34603)
* Fix user test. * Use `dnf` instead of `yum` in dnf test. * Install correct version of rpmfluff for tests.
This commit is contained in:
parent
70cafcdef6
commit
9599630976
3 changed files with 12 additions and 1 deletions
|
@ -209,6 +209,6 @@
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
always:
|
always:
|
||||||
- name: Clean up
|
- name: Clean up
|
||||||
yum:
|
dnf:
|
||||||
name: foo
|
name: foo
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
@ -5,6 +5,14 @@
|
||||||
when:
|
when:
|
||||||
- ansible_distribution in ['RedHat']
|
- ansible_distribution in ['RedHat']
|
||||||
|
|
||||||
|
- name: Install rpmfluff and deps
|
||||||
|
package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- python{{ ansible_python_version.split(".")[0] }}-rpmfluff
|
||||||
|
when:
|
||||||
|
- ansible_distribution in ['Fedora']
|
||||||
|
|
||||||
- name: Install rpmfluff and deps
|
- name: Install rpmfluff and deps
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -12,6 +20,8 @@
|
||||||
- python-rpmfluff
|
- python-rpmfluff
|
||||||
- createrepo_c
|
- createrepo_c
|
||||||
- createrepo # used by el6 version of rpmfluff
|
- createrepo # used by el6 version of rpmfluff
|
||||||
|
when:
|
||||||
|
- ansible_distribution not in ['Fedora']
|
||||||
|
|
||||||
- name: Copy script for creating a repo
|
- name: Copy script for creating a repo
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
user:
|
user:
|
||||||
name: ansibulluser
|
name: ansibulluser
|
||||||
state: absent
|
state: absent
|
||||||
|
force: true
|
||||||
register: user_test2
|
register: user_test2
|
||||||
- name: make a new list of users
|
- name: make a new list of users
|
||||||
script: userlist.sh "{{ ansible_distribution }}"
|
script: userlist.sh "{{ ansible_distribution }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue