robertdebock.common

Ansible Role Common

This role is designed to set up common configurations on your system.

GitHub GitLab Downloads Version
GitHub GitLab Downloads Version

Example Playbook

Here’s an example playbook from molecule/default/converge.yml that is tested with every update.

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

  roles:
    - role: robertdebock.common

Before running this, prepare the machine using molecule/default/prepare.yml:

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

  roles:
    - role: robertdebock.bootstrap

For more detailed information and examples, check out this guide.

Role Variables

Default values for the variables are found in defaults/main.yml:

---
# Defaults for common settings

# Selected hostname.
common_hostname: "{{ inventory_hostname }}"

# List of nameservers to set up.
# common_nameservers:
#   - 1.1.1.1
#   - 1.0.0.1

# Populate /etc/hosts with all hosts in the play.
common_hosts: "{{ groups.all }}"

# Should the system reboot on hostname change?
common_reboot: true

Requirements

State of Used Roles

The following roles are used to prepare a system. You can also use other methods to prepare 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, visit the documentation.

Here is a visual of related roles: dependencies

Compatibility

This role has been tested on these container images:

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

You need at least Ansible version 2.12. Tests have been conducted on:

  • The previous version.
  • The current version.
  • The development version.

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

License

This role is under the Apache-2.0.

Author Information

Created by robertdebock.

Feel free to consider sponsoring me.

Informazioni sul progetto

The purpose of this role is to configure common things on your system.

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