Ansible Dev Collection

C2 Ansible Dev collection
GitLab

Pipeline Status Latest Release Ansible Galaxy

This C2 Platform Ansible Collection contains roles specifically designed for development environments. These roles are not intended for production systems! The collection primarily focuses on the deployment and management of Ubuntu-based Ansible Development Desktops and Warming environments, forming a key component of the C2 Platform Ansible development ecosystem.

Roles

  • desktop  — Provisions and configures an Ubuntu 24.04-based Ansible development desktop environment.
  • virtualbox  — Installs and configures VirtualBox on Ubuntu/Debian-based systems using the official virtualbox.org repository.
  • oracle_database  — Deploys an Oracle Database for development environments using official Oracle Docker containers.
  • graylog  — Installs and configures the Graylog centralized log management platform.
  • vnc  — Configures TigerVNC on Ubuntu 24.04 to provide remote desktop access for Guacamole.

Inventory Plugins

  • c2platform.dev.vagrant — Generates an Ansible inventory from a C2 Platform Vagrantfile.yml. Hosts are taken from the nodes section and groups are generated from the node and box labels.

label_groups

The vagrant inventory plugin supports a label_groups option that allows configuring parent groups based on labels. It is defined at the top level of Vagrantfile.yml:

label_groups:
  cka: [cka_worker, cka_cp, cka_cp_join]
  cka_etcdctl: [cka_cp, cka_cp_join]

With the configuration above, when a node has a label cka_worker, cka_cp or cka_cp_join, it will automatically also be placed in the parent group cka. This is the equivalent of the following INI [parent:children] construct:

[cka:children]
cka_worker
cka_cp
cka_cp_join

Modules and Filters

For detailed information on the available modules and filters within this collection, please refer to the Ansible Galaxy  page.

You can of course also use the ansible-doc command to explore the documentation:

ansible-doc -t module --list c2platform.dev
ansible-doc -t filter --list c2platform.dev
ansible-doc -t inventory --list c2platform.dev
ansible-doc -t inventory c2platform.dev.vagrant
ansible-doc -t filter <FILTER_NAME>
ansible-doc -t module <MODULE_NAME>

Ansible Desktop Role

Provisions an Ubuntu 24.04 Ansible development desktop with VirtualBox, LXD, and Vagrant.

Ansible Graylog Role

Ansible Oracle Database Role

Ansible Virtualbox Role

Installs Oracle VirtualBox from the Oracle apt repository on Debian and Ubuntu.



Last modified August 13, 2026: gitlab project import/update (9191b97)