Collection for custom Adfinis ansible facts plugins
timer_facts: slightly modifiedservice_factsplugin to support timer unitsapt_sources_facts: Gather facts about configured sources for Debian's APT. Supports both the sources.list and the deb822 formats.tlsref_facts: gather recommended TLS configuration from tlsref.org (formerly ssl-config.mozilla.org) and register it as a fact.
Usage examples for the individual fact plugins included:
- name: Populate timer facts
adfinis.facts.timer_facts:
- name: Print timer facts
ansible.builtin.debug:
var: ansible_facts.timers- name: Populate apt sources facts
adfinis.facts.apt_sources_facts:
- name: Print apt sources facts
ansible.builtin.debug:
var: ansible_facts.apt_sources- name: Gather the TLSRef reference configuration
adfinis.facts.tlsref_facts:
version: "6.0"
- name: Print the list of TLS ciphers in the intermediate configuration
ansible.builtin.debug:
var: ansible_facts.tlsref.configurations.intermediate.ciphers.opensslBefore using this collection, you need to install it with the Ansible Galaxy command-line tool:
ansible-galaxy collection install adfinis.factsYou can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:
---
collections:
- name: adfinis.factsNote that if you install the collection from Ansible Galaxy, it will not be upgraded automatically when you upgrade the ansible package. To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install adfinis.factsYou can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax to install version 0.1.0:
ansible-galaxy collection install adfinis.facts:==0.1.0See Ansible Using collections for more details.
Once you have done some work, please test the collection locally using molecule.
To install it locally, use ansible-galaxy collection build and install the resulting tar.gz file.