Skip to content

maccan-tech/ansible-filter_plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ansible-filter_plugins

Filter dict_rn

Filter for renaming indexes in dictionary list.
Example:

- name: Rename dict element
  ansible.builtin.debug:
    msg: "{{ list | dict_rn('key', 'name') }}"

  vars:
    list:
      - key: a
        value: 123
      - key: b
        value: 456

  # Produces the following list of dictionaries:
  # {
  #   "name": "a",
  #   "value": 123
  # },
  # {
  #   "name": "b",
  #   "value": 456
  # }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages