This collection integrates CFEngine into Ansible worflows.
cfenginemodule -- module (task type) for making sure a host is part of the CFEngine-managed infrastructure
-
Collection installation
To install this collection, run the following command:
ansible-galaxy collection install https://gitlab.com/Northern.tech/CFEngine/cfengine-ansible-collection/uploads/71362febba022da55db9db748d7d399f/cfengine-cfengine-1.0.0.tar.gz -
Use the
cfenginemoduleThe
cfenginemodule 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.18.1The Enterprise edition is installed by default. Use the
editionoption to install the Community edition instead:- name: Install and bootstrap CFEngine Community cfengine.cfengine.cfengine: policy_server: hub.example.com edition: community