Convert from short syntax to YAML syntax automatically

Hello,

I inherited a huge codebase that used Ansible's short syntax for a
long time and then transitioned to the YAML syntax.

Is there any tool out there that would convert to YAML syntax
automatically? My searches were not very fruitful.

Thanks,
Giovanni

Assuming you mean inventory you can use -y or --yaml via https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html

e.g. ansible-inventory --inventory input_inentory --yaml --list

** I did a search for short syntax and could not find what it means in this context so I guessed it meant INI format.

- name: OpenSSH daemon configuration
  become: yes
  template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
  notify: reload-sshd

vs.

- name: OpenSSH daemon configuration
  become: yes
  template:
    src: sshd_config.j2
    dest: /etc/ssh/sshd_config
  notify: reload-sshd