Fix linters 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: I3aa1a19eb1aa735bafb29e5babe433b77a8d1f47
This commit is contained in:
parent
4a7012e366
commit
1e6fc97dbe
@ -43,7 +43,7 @@
|
|||||||
- systemd-resolved
|
- systemd-resolved
|
||||||
|
|
||||||
- name: Update initramfs
|
- name: Update initramfs
|
||||||
command: "{{ systemd_networkd_update_initramfs }}"
|
command: "{{ systemd_networkd_update_initramfs }}" # noqa: no-changed-when
|
||||||
when:
|
when:
|
||||||
- ansible_facts['virtualization_type'] != "systemd-nspawn"
|
- ansible_facts['virtualization_type'] != "systemd-nspawn"
|
||||||
- ansible_facts['virtualization_type'] != "lxc"
|
- ansible_facts['virtualization_type'] != "lxc"
|
||||||
|
@ -18,18 +18,20 @@ galaxy_info:
|
|||||||
description: Installation and setup of systemd_networkd
|
description: Installation and setup of systemd_networkd
|
||||||
company: Rackspace
|
company: Rackspace
|
||||||
license: Apache2
|
license: Apache2
|
||||||
min_ansible_version: 2.0
|
role_name: systemd_networkd
|
||||||
|
namespace: openstack
|
||||||
|
min_ansible_version: "2.10"
|
||||||
platforms:
|
platforms:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
- buster
|
- bullseye
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions:
|
||||||
- bionic
|
|
||||||
- focal
|
- focal
|
||||||
|
- jammy
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
- 8
|
- "9"
|
||||||
categories:
|
galaxy_tags:
|
||||||
- systemd
|
- systemd
|
||||||
- development
|
- development
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
src: "{{ item.keyfile }}"
|
src: "{{ item.keyfile }}"
|
||||||
dest: "{{ item.key }}"
|
dest: "{{ item.key }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
with_items: "{{ systemd_networkd_package_repos_keys | selectattr('keyfile','defined') | list }}"
|
with_items: "{{ systemd_networkd_package_repos_keys | selectattr('keyfile', 'defined') | list }}"
|
||||||
when:
|
when:
|
||||||
- ansible_facts['os_family'] | lower == 'redhat'
|
- ansible_facts['os_family'] | lower == 'redhat'
|
||||||
|
|
||||||
@ -100,6 +100,7 @@
|
|||||||
file:
|
file:
|
||||||
path: "/etc/systemd/network"
|
path: "/etc/systemd/network"
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
tags:
|
tags:
|
||||||
- systemd-networkd
|
- systemd-networkd
|
||||||
|
|
||||||
@ -195,7 +196,7 @@
|
|||||||
tags:
|
tags:
|
||||||
- systemd-networkd
|
- systemd-networkd
|
||||||
|
|
||||||
- name: restart systemd_networkd prior to applying sysctl changes
|
- name: Restart systemd_networkd prior to applying sysctl changes
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
- name: Add IP Forward for interface
|
- name: Add IP Forward for interface
|
||||||
|
Loading…
Reference in New Issue
Block a user