Add init for new library
This commit is contained in:
		
							
								
								
									
										26
									
								
								library/gandi_dns.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								library/gandi_dns.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | |||||||
|  | #!/usr/bin/python3 | ||||||
|  |  | ||||||
|  | DOCUMENTATION = """ | ||||||
|  | --- | ||||||
|  | module: gandi_dns | ||||||
|  | short_description: Manage Gandi DNS entries | ||||||
|  | """ | ||||||
|  |  | ||||||
|  | EXAMPLES = """ | ||||||
|  | - name: Create a new Gandi DNS entry | ||||||
|  |   gandi_dns: | ||||||
|  |     apirest_key: "{{ apirest_key }}" | ||||||
|  |     domain: foobar.autonomic.zone | ||||||
|  |     ipv4: 192.168.1.2 | ||||||
|  | """ | ||||||
|  |  | ||||||
|  | from ansible.module_utils.basic import AnsibleModule | ||||||
|  |  | ||||||
|  |  | ||||||
|  | def main(): | ||||||
|  |     module = AnsibleModule(argument_spec={}) | ||||||
|  |     module.exit_json(changed=False, meta={"TO": "DO"}) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | if __name__ == "__main__": | ||||||
|  |     main() | ||||||
							
								
								
									
										8
									
								
								play.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								play.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | --- | ||||||
|  | - hosts: localhost | ||||||
|  |   tasks: | ||||||
|  |     - name: Create foobar.autonomic.zone | ||||||
|  |       gandi_dns: | ||||||
|  |         apirest_key: "{{ apirest_key }}" | ||||||
|  |         domain: foobar.autonomic.zone | ||||||
|  |         ipv4: 192.168.1.2 | ||||||
							
								
								
									
										2
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | ansible==2.9.6 | ||||||
|  | gandi.cli==1.5 | ||||||
		Reference in New Issue
	
	Block a user