This collection integrates CFEngine into Ansible workflows.
To install this collection, run the following command:
ansible-galaxy collection install cfengine.cfengine
The cfengine module can be used in playbooks by adding a task like this:
- name: Install and bootstrap CFEngine
cfengine.cfengine.cfengine:
policy_server: hub.example.com
version: 3.27.1The Enterprise edition is installed by default. Use the edition option to install the Community edition instead:
- name: Install and bootstrap CFEngine Community
cfengine.cfengine.cfengine:
policy_server: hub.example.com
edition: communityCheck out the blog post Installing CFEngine with Ansible for a more complete example.