github ironicbadger/ansible-role-docker-compose-generator v2.1.0
v2.1.0 - Top-Level Compose Keys & Config File Deployment

15 hours ago

What's New

🎯 Full Top-Level Compose Key Support (#52)

The role now properly handles all top-level Docker Compose keys, not just services. This includes:

  • configs - Define and reference config objects
  • networks - Custom network definitions
  • volumes - Named volume definitions
  • secrets - Secret management

Each key is merged across all your compose files and output correctly in the generated compose.yaml.

A new custom Ansible filter (indent_yaml_lists) ensures proper YAML formatting with correctly indented list items for better readability.

📁 Config File Deployment (#50)

Deploy configuration files alongside your services using config-* directories:

services/
└── hostname/
    └── monitoring/
        ├── compose.yaml
        └── config-glance/
            ├── .dest          # Contains destination path
            └── glance.yml     # Config file to deploy

Optional ZFS Support: Enable docker_compose_generator_zfs_enabled: true to automatically create ZFS datasets for config directories.

🔧 Other Improvements

  • Configurable services directory (#43) - Override with services_directory variable
  • Flexible file matching (#39) - Supports both .yml and .yaml extensions
  • Filtering support - Exclude config directories from compose file discovery automatically

Breaking Changes

None - fully backwards compatible with v2.0.

Full Changelog

v2.0...v2.1.0

Don't miss a new ansible-role-docker-compose-generator release

NewReleases is sending notifications on new releases.