Move filter_plugin folder;Improve feedback;Add missing attributes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-09-07 09:46:36 +02:00
parent 8181ae4017
commit 0bddae0440
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import netaddr
def netaddr_iter_iprange(ip_start, ip_end):
return [str(ip) for ip in netaddr.iter_iprange(ip_start, ip_end)]
class FilterModule(object):
''' Ansible filter. Interface to netaddr methods.
https://pypi.org/project/netaddr/
'''
def filters(self):
return {
'netaddr_iter_iprange': netaddr_iter_iprange
}

View File

@ -16,6 +16,8 @@
_template:
name: "{{ item.name }}"
namespace: "{{ item.namespace }}"
annotations: "{{ item.annotations | default('{}') | indent(width=4, first=True) }}"
labels: "{{ item.labels | default('{}') | indent(width=4, first=True) }}"
data: "{{ item.data }}"
loop:
- name: hypervisor-credentials

View File

@ -24,6 +24,8 @@
- regex: '^PasswordAuthentication yes'
line: 'PasswordAuthentication yes'
state: absent
loop_control:
label: "{{ '[' + item.regex + '] ' + item.state }}"
- name: Create dedicated SSH keypair
community.crypto.openssh_keypair: