robertdebock.functions

Ansible Role Functions

Explore various functions.

GitHub GitLab Downloads Version
GitHub GitLab Downloads Version

Example Playbook

Here’s a sample playbook from molecule/default/converge.yml that is tested with each update.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.functions

Before running, the machine needs to be set up. This is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap

For a detailed guide on using these roles, check out this full explanation and example.

Role Variables

Default variable values are located in defaults/main.yml:

---
# Default values for functions

functions_strings:
  - "A regular line."
  - "CAPITALS ONLY"
  - "lowercase only"
  - " Extra spaces. "
  - "A line with the word new and old."
  - "A line with integers. 1, 2 & 3."

functions_integers:
  - 0
  - 1
  - 1.4
  - 1.5
  - 1.6
  - 2.0

Requirements

You need the pip packages listed in requirements.txt.

State of Used Roles

These roles are utilized to set up a system. You can choose a different method for preparing your system.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab

Context

This role works with many other compatible roles. For more information, check out the documentation of these roles.

Here’s a visual of related roles: dependencies

Compatibility

This role is tested on various container images:

Container Tags
Alpine all
Amazon Candidate
EL 9
Debian all
Fedora all
Ubuntu all

The minimum Ansible version required is 2.12. Tests have been conducted on:

  • Previous versions.
  • The latest version.
  • Development versions.

If you encounter any issues, please report them on GitHub.

License

Apache-2.0.

Author Information

Created by robertdebock.

If you would like to support my work, please consider sponsoring me.

Informazioni sul progetto

Try all kinds of functions.

Installa
ansible-galaxy install robertdebock.functions
Licenza
apache-2.0
Download
157
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.