ansible-datadog icon indicating copy to clipboard operation
ansible-datadog copied to clipboard

running the role twice results in invalid repos

Open ipc-zpg opened this issue 3 years ago • 0 comments

Running the role on a opensuse host twice ends up with the repos baseurl getting corrupt.

This is due to the re-use of the variable datadog_zypper_repo


[datadog]
name=Datadog, Inc.
enabled=1
autorefresh=1
baseurl={'diff': [], 'dest': '/etc/zypp/repos.d/datadog.repo', 'src': '/home/user/.ansible/tmp/ansible-tmp-1658241733.9766731-73853-207312636049185/source', 'md5sum': '781220777229d16a33e55087b4e0521f', 'checksum': '59848c8f2a4ad1f99aaf6d7729f2c19000a08d5a', 'changed': True, 'uid': 0, 'gid': 0, 'owner': 'root', 'group': 'root', 'mode': '0644', 'state': 'file', 'size': 402, 'failed': False}

ipc-zpg avatar Jul 19 '22 15:07 ipc-zpg