Files

90 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

# Common [![status-badge](https://hub.cybercinch.nz/cybercinch/ansible-role-common/actions/workflows/ci.yml/badge.svg)](https://hub.cybercinch.nz/cybercinch/ansible-role-common/actions?workflow=ci.yml)
2016-06-29 12:34:37 +12:00
=========
This role is a collection of functionality to ease common setup of Linux based VM's. Some functionality for windows servers is available.
Features:
* Dynamic motd - This displays information to administrators at login.
* Helper commands - These are commands to help with online resizing of Linux Partitions/Drives when running on VMWare.
* Set DNS resolvers for use on the host.
* Install common packages for the host (Win/Linux)
2016-06-29 12:34:37 +12:00
2024-04-23 16:57:47 +12:00
Requirements
2016-06-29 12:34:37 +12:00
------------
Nil
2016-06-29 12:34:37 +12:00
Role Variables
--------------
Role variables can be found in defaults/main.yml
```yaml
domain: exampledomain.com
ad_domain_joined: no
win_timezone: New Zealand Standard Time
vendors_hosts: []
dns_servers:
- 1.0.0.1
- 1.1.1.1
admin_group: admins
common_grub_timeout: 5
postfix_configure: false
common_packages: # Packages we will/would like to install
- nano
- git
- htop
- atop
- wget
- bind-utils
- yum-utils
- unzip
win_packages:
- notepadplusplus.install
- firefoxesr
- baretail
- 7zip.install
apply_win_updates: false
common_show_ipv6: false|bool
common_root_pwd: $y0urp@$$ ## You should always use a vault encrypted string here.
common_root_email: admin@somplace.co.nz # Configures forwarding address for root.
```
2016-06-29 12:34:37 +12:00
Dependencies
------------
Nil external dependencies. Requires only builtin functions
2016-06-29 12:34:37 +12:00
Example Playbook
----------------
This is an example playbook. Executes the role overriding two variables.
You could alternately set these in host_vars or group_vars:
2016-06-29 12:34:37 +12:00
2022-11-01 22:43:29 +13:00
```yaml
- hosts: server
2016-06-29 12:34:37 +12:00
roles:
- { role: cybercinch.common,
common_show_ipv6: true,
common_root_email: iamroot@example.com }
2022-11-01 22:43:29 +13:00
```
2016-06-29 12:34:37 +12:00
License
-------
MIT
2016-06-29 12:34:37 +12:00
Author Information
------------------
This role was created in 2017 by [Aaron Guise](https://guise.net.nz/)