opentelekomcloud / ansible-collection-cloud

Ansible modules for using with OTC (addition to the native OpenStack modules)
Apache License 2.0
21 stars 14 forks source link

Documentation tag module #245

Open hadoopch opened 1 year ago

hadoopch commented 1 year ago

Hi. today i checked the tag module. The examples in the doc seem to be old.

- name: replace all tags with a single tag on a server
  os_tag:
    server: "{{ server_name }}"
    state: present
    tags:
        - new_tag
    mode: replace

I think this has to be changed to:

- name: replace all tags with a single tag on a server
  opentelekomcloud.cloud.tag:
    server: "{{ server_name }}"
    state: present
    tags:
        - new_tag
    mode: replace

Thanks in advance

Uli

gtema commented 1 year ago

The module on it's own is very very old. It was first proposed to the Ansible as OpenStack module but didn't managed it before Ansible Collections were split out. We need to reconsider design of this module as such