dblenkus.common
ansible-common
Ansible role for standard configuration tasks on EL7 servers.
Requirements
This role is compatible with CentOS
and Red Hat Enterprise Linux (RHEL)
versions of EL7 only.
It needs RHEL/CentOS version 7.4 or higher to use a new python-virtualenv package that ensures compatibility with Python 3. More details are available here.
If you require support for additional Linux distributions, please feel free to submit a pull request.
Role Variables
The variable remote_user
is automatically set to the user who connects to the server.
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
common_include_security |
boolean | Indicates if the security part of the role should run. | no | true |
common_include_guest_additions |
boolean | Indicates if the VirtualBox guest additions should run. | no | false |
common_hostname |
string | The server's hostname. | no | "{{ inventory_hostname }}" |
common_rhel_repos_for_epel |
list | List of repository IDs for enabling the EPEL repository on RHEL. | no | - rhel-7-server-optional-rpms - rhel-7-server-extras-rpms |
common_python3_enabled |
boolean | Install Python 3.4 if set to true . |
no | false |
common_python36_enabled |
boolean | Install Python 3.6 if set to true . |
no | false |
common_selinux_permisive |
boolean | Set SELinux to permissive mode if set to true . |
no | false |
common_ssh_allowed_ips |
list | List of IP addresses allowed to make SSH connections. | no | [] |
Warning: If this list is empty, all SSH connections will be allowed. | ||||
common_ssh_authorized_keys |
list | List of public SSH keys to add to remote_user 's authorized keys. |
no | [] |
vaulted_common_root_password |
string | Root user's password (must be hashed and saved in Ansible Vault for security). | no | "" |
Warning: Password will be disabled if this is left blank. | ||||
vaulted_common_user_password |
string | remote_user 's password (must be hashed and saved in Ansible Vault for security). |
no | |
common_root_ps1 |
string | Sets the PS1 variable for root's bash prompt if defined. | no | "${BGREEN}\u@\h${NORMAL}:${BBLUE}\w${NORMAL}\\$" |
common_user_ps1 |
string | Sets the PS1 variable for remote user's bash prompt if defined. | no | "${BLUE}(${RED}\w${BLUE}) ${NORMAL}\h ${RED}\\$ ${NORMAL}" |
common_virtualbox_dist_dir |
string | Directory where VirtualBox guest additions will be downloaded and extracted. | no | /opt/virtualbox |
Dependencies
There are no dependencies for this role.
Example Playbook
To use this role, include it in your playbook like this:
- hosts: servers
roles:
- { role: domenblenkus.common }
License
Licensed under the GPLv3 License. Refer to the COPYING file for details.
Author Information
| Domen Blenkuš | | Tadej Janež |
Installa
ansible-galaxy install dblenkus.common
Licenza
gpl-3.0
Download
141
Proprietario