buluma.centos_base
Ansible Role centos_base
Basic Configuration for CentOS
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
This example comes from molecule/default/converge.yml
and is tested every time there’s a push, pull request, or release.
---
# TODO: Change this playbook to a different scenario
# Default scenario should work with default variable values
- name: Converge
hosts: all
vars:
- centos_base_utility_packages: true
- centos_base_enable_epel: true
- centos_base_vim_users: ['root']
- centos_base_basic_vim_tweaks: true
- centos_base_firewalld_services: ['http']
- centos_base_basic_packages: true
- centos_base_firewalld: true
- centos_base_debug_packages: true
- centos_base_security_packages: true
pre_tasks:
- name: Install Apache
ansible.builtin.yum:
name: httpd
- name: Start httpd
ansible.builtin.systemd:
name: httpd
state: started
roles:
- role: buluma.centos_base
The machine needs to be prepared. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: yes
gather_facts: no
roles:
- role: buluma.bootstrap
- role: buluma.epel
See a full explanation and example on how to use these roles.
Role Variables
The default values for these variables are set in defaults/main.yml
:
---
# Default values for centos_base
centos_base_secure_sshd: false
centos_base_basic_vim_tweaks: false
centos_base_htop_configuration: false
centos_base_fail2ban_configuration: false
centos_base_selinux_packages: false
centos_base_firewalld_services: []
centos_base_nagios_packages: false
centos_base_utility_packages: false
centos_base_basic_packages: false
centos_base_debug_packages: false
centos_base_enable_epel: false
centos_base_lockprg: false
centos_base_security_packages: false
centos_base_firewalld: true
centos_base_development_packages: false
Requirements
- Install pip packages listed in requirements.txt.
State of Used Roles
The following roles are used to prepare a system. You can also set up your system differently.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.epel |
Context
This role is part of many compatible roles. Check the documentation of these roles for more information.
Here’s an overview of related roles:
Compatibility
This role has been tested on the following container images:
Container | Tags |
---|---|
EL | 8, 7 |
You need at least Ansible version 2.10 to use this. Tests have been conducted with:
- The previous version.
- The current version.
- The development version.
If you find any issues, please report them on GitHub.
Changelog
License
Author Information
Basic CentOS Configuration
ansible-galaxy install buluma.centos_base