diff --git a/tasks/config/zfs.yml b/tasks/config/zfs.yml index 3de179f..0b124d0 100644 --- a/tasks/config/zfs.yml +++ b/tasks/config/zfs.yml @@ -11,6 +11,7 @@ repo_pkg: "{{ pkgconfig.zfs.repo_base }}/{{ rhname }}/zfs-release-{{ pkgconfig.zfs[rhname].release }}{{ rpm_dist.stdout }}.noarch.rpm" deps: "{{ pkgconfig.zfs.build_deps[ansible_os_family] }}" pkgs: "{{ pkgconfig.zfs.pkgs[ansible_os_family] }}" + skip_gpg_check: "{{ rhname == 'fedora' }}" release: "{{ ansible_distribution_release }}" gpg_key: "{{ pkgconfig.zfs.gpg_key }}" gpg_fp: "{{ pkgconfig.zfs.gpg_key_fingerprint }}" diff --git a/tasks/pkgs/zfs.yml b/tasks/pkgs/zfs.yml index 6d367e2..ad78de3 100644 --- a/tasks/pkgs/zfs.yml +++ b/tasks/pkgs/zfs.yml @@ -19,6 +19,7 @@ become: "{{ sys_pkg_become }}" ansible.builtin.dnf: name: "{{ zfs.repo_pkg }}" + disable_gpg_check: "{{ zfs.skip_gpg_check }}" state: present - name: Debian configuration diff --git a/tasks/repos/terra.yml b/tasks/repos/terra.yml index 4a23e02..cc36c3e 100644 --- a/tasks/repos/terra.yml +++ b/tasks/repos/terra.yml @@ -19,6 +19,7 @@ cmd: "dnf config-manager --add-repo {{ pkgconfig.terrarepo.repo }}" - name: Install terra release package + become: true ansible.builtin.dnf: name: terra-release state: present diff --git a/tests/test.sh b/tests/test.sh index f0dcb0a..be70e82 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -2,3 +2,4 @@ podman run --rm -it -d --platform linux/amd64 --name packagetest -p 2222:22 packagetest ansible-playbook test_not_local.yml -i inventory.yml +podman stop packagetest