summaryrefslogtreecommitdiff
path: root/test/integration/targets/dnf5/playbook.yml
blob: 16dfd22e3666c79b8001f810b1717393242e026a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- hosts: localhost
  tasks:
    - block:
        - command: "dnf install -y 'dnf-command(copr)'"
        - command: dnf copr enable -y rpmsoftwaremanagement/dnf5-unstable
        - command: dnf install -y python3-libdnf5

        - include_role:
            name: dnf
          vars:
            dnf5: true
            dnf_log_files:
              - /var/log/dnf5.log
      when:
        - ansible_distribution == 'Fedora'
        - ansible_distribution_major_version is version('37', '>=')
      module_defaults:
        dnf:
          use_backend: dnf5