Ansible Core Collection
Categories:
C2 Platform generic roles that are used by all or some other roles. These roles typically don’t create services / processes on target node but are dependencies e.g. packages required by those roles. Or these roles help with Ansible provisioning for example offers generic Ansible modules, filters etc.
Roles
- linux
manage of Linux systems by leveraging +112 modules
from the the
ansible.builtin,ansible.posix, andcommunity.generalcollections. - server_update update yum / apt cache and /or upgrade packages.
- bootstrap bootstrap your nodes with os and pip packages.
- mount configure / manage mount points.
- secrets workaround for lack of support for vault when using AWX.
- os_trusts Manage OS trust store.
- cacerts2 create your own smallCA.
- cacerts2_client generate ownca certificates.
- apt_repo add APT keys, repositories.
- yum add / remove Yum repositories.
- users manage Linux accounts.
- service create systemd services.
- java install java, manage keystores.
- facts gather facts.
- lcm facts for LCM operations for other roles to build upon.
- lvm manage data disks for roles using LVM .
- rest interact with REST webservices.
- postgresql_tasks include tasks for PostgreSQL database operations.
- postgresql_client .
- manage_service orchestrate stop, start and restart over multiple nodes.
- env_test network test role.
- facts_cmdb
gather facts for
ansible-cmdb. - vagrant_hosts manage hosts file on Windows and Linux guests.
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.core
ansible-doc -t filter --list c2platform.core
ansible-doc -t filter <FILTER_NAME>
ansible-doc -t module <MODULE_NAME>
Using this collection
Before using the collection, you need to install it with the Ansible Galaxy command-line tool:
ansible-galaxy collection install c2platform.core
You can include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml, using the format:
---
collections:
- name: c2platform.core
See Ansible Using collections for more details.
Ansible CACerts2 Role
Streamline the creation and management of your own Certificate Authority (CA) with this role, which automates certificate generation and distribution across nodes using the community.crypto collection.
Ansible Linux Role
Manage Linux systems effectively with a wide range of modules from ansible.builtin, ansible.posix, and community.general collections, simplifying resource management via the linux_resources variable, which is flexible and powerful, enhancing administration and reducing the need for custom roles or collections.
Ansible Secrets Role
Manage secrets effectively using Ansible Vault within your Ansible projects, specifically designed for Red Hat Automation Platform (AAP) and AWX, enhancing security and simplifying secret management.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.