ansible-collections / community.digitalocean

This Ansible collection contains modules for assisting in the automation of the DigitalOcean cloud.
https://galaxy.ansible.com/community/digitalocean/
GNU General Public License v3.0
140 stars 57 forks source link

digital_ocean_domain: Fails if you have more than 20 domains #306

Closed elcfd closed 1 year ago

elcfd commented 1 year ago
SUMMARY

The digital_ocean_domain module fails if you have more than 20 domains in your project. This is because the Digitial Ocean domains api list endpoint is paginated with a default value of 20 (docs: https://docs.digitalocean.com/reference/api/api-reference/#operation/domains_list)

ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.14.5]
  config file = None
  configured module search path = ['/home/tank/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/tank/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/tank/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/tank/.local/bin/ansible
  python version = 3.10.10 (main, Mar  5 2023, 22:26:53) [GCC 12.2.1 20230201] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
# /home/tank/.local/lib/python3.10/site-packages/ansible_collections
Collection             Version
---------------------- -------
community.digitalocean 1.23.0 
CONFIGURATION
CONFIG_FILE() = None
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Data domain 'my.digitalodean.domain': name already exists