Skip to content

Commit 34ce85c

Browse files
committed
Fix ansible tests
1 parent 1d561e1 commit 34ce85c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/pytests/integration/states/test_ansiblegate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ def test_ansible_playbook(salt_call_cli, ansible_inventory, tmp_path):
7474
- hosts: all
7575
tasks:
7676
- name: remove postfix
77-
yum:
77+
dnf:
7878
name: postfix
7979
state: absent
8080
become: true
81-
become_user: root
8281
"""
8382
)
8483
remove_playbook = rundir / "remove.yml"
@@ -89,11 +88,10 @@ def test_ansible_playbook(salt_call_cli, ansible_inventory, tmp_path):
8988
- hosts: all
9089
tasks:
9190
- name: install postfix
92-
yum:
91+
dnf:
9392
name: postfix
9493
state: present
9594
become: true
96-
become_user: root
9795
"""
9896
)
9997
install_playbook = rundir / "install.yml"

0 commit comments

Comments
 (0)