Move filter_plugin folder;Improve feedback;Add missing attributes
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -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 | ||||
|             } | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user