Files
oam/examples/ansible/toml.customize

Customize a given TOML file

The example takes the configuration of a Gitlab runner as example just because it is a TOML file with known values.

Requirements

  • Matt Martz (sivel)'s toiletwater Ansible collection.
    Needed to have access to filters like to_toml.

    ansible-galaxy collection install 'sivel.toiletwater'
    
  • Python's 'toml' library
    Needed to read from and write to TOML files.

    pip install --user 'toml'
    brew install 'python-toml'
    

Output

See the desired result and the effective output.

Not perfect, but still good enough.

Further readings

Sources