Fix linters issue and metadata

With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I31d93b2147838f04750bb1380602406484ba400b
This commit is contained in:
Dmitriy Rabotyagov 2023-07-11 21:20:42 +02:00 committed by Dmitriy Rabotyagov
parent 310b799873
commit b7b2134b9d
3 changed files with 9 additions and 6 deletions

View File

@ -17,17 +17,19 @@ galaxy_info:
author: rcbops
description: Pinning of apt packages
company: Rackspace
role_name: apt_cache_pinning
namespace: openstack
license: Apache2
min_ansible_version: 1.6.6
min_ansible_version: "2.10"
platforms:
- name: Debian
versions:
- stretch
- bullseye
- name: Ubuntu
versions:
- xenial
- bionic
categories:
- focal
- jammy
galaxy_tags:
- cloud
- apt
- pinning

View File

@ -17,6 +17,7 @@
template:
src: apt_pinned_packages.perf.j2
dest: "/etc/apt/preferences.d/{{ apt_package_pinning_file_name }}"
mode: "0644"
when:
- ansible_facts['pkg_mgr'] == 'apt'
- apt_pinned_packages is defined