ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
823 stars 1.52k forks source link

gandi_livedns: No diff output for changed records #4927

Open ainola opened 2 years ago

ainola commented 2 years ago

Summary

I would like to verify record changes in my domains via --check --diff or even view the changes with just --diff, but the module does not output any relevant information, only the typical yellow changed. It would be nice to get the actual changes that are staged/applying with the typical --diff command.

Issue Type

Bug Report

Component Name

gandi_livedns

Ansible Version

$ ansible --version
ansible [core 2.13.1]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/ainola/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /home/ainola/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.5 (main, Jun  6 2022, 18:49:26) [GCC 12.1.0]
  jinja version = 3.1.2
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /usr/lib/python3.10/site-packages/ansible_collections
Collection        Version
----------------- -------
community.general 5.0.2  

Configuration

$ ansible-config dump --only-changed
<empty>

OS / Environment

Arch Linux with distro-packaged ansible

Steps to Reproduce

Create a task such as:

- name: AAAA record
  community.general.gandi_livedns:
    domain: "example.com"
    record: "@"
    type: AAAA
    ttl: 3600
    values: ["2001:0DB8::1"]
    api_key: "secretstring"

and apply with e.g. ansible-playbook example.yml --diff

Expected Results

output like:

TASK [example : AAAA record]
--- before
+++ after
-    "example.com[@]": "ttl=300",
+    "example.com[@]": "ttl=3600",

changed: [localhost]

Actual Results

TASK [example : AAAA record]
changed: [localhost] => (item=@)

Code of Conduct

ansibullbot commented 2 years ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 2 years ago

cc @gthiemonge click here for bot help

felixfontein commented 2 years ago

If the module does not say it supports it, this isn't a bug report, but a feature request.

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help