Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sergelogvinov/ansible-role-system

Basic preparation for the operation system.
https://github.com/sergelogvinov/ansible-role-system

ansible-role

Last synced: about 1 month ago
JSON representation

Basic preparation for the operation system.

Awesome Lists containing this project

README

        

# Ansible role system

Basic preparation the operation system.

## Install

```shell
ansible-galaxy role install git+https://github.com/sergelogvinov/ansible-role-system.git,main
```

## Usage

```ini
# inventory file

[servers]
server-1 ansible_host=1.2.3.1
```

```yaml
# hosts/server-1.yaml

system_cpufrequtils_governor: schedutil
# For proxmox server
system_packages:
- tcpdump
- htop
- iftop

system_apt_auto_upgrade: true
system_sysctl:
- { name: net.ipv4.ip_forward, value: 1 }
- { name: net.ipv6.conf.all.forwarding, value: 1 }
- { name: net.ipv6.conf.all.autoconf, value: 0 }
- { name: net.ipv6.conf.all.accept_ra, value: 0 }
system_network_hosts:
- { ip: "{{ ansible_default_ipv4['address'] }}", name: "{{ inventory_hostname }}{{ ' '+inventory_hostname.split('.')[0] if '.' in inventory_hostname }}" }

```

```yaml
# values.yaml

- hosts: servers
roles:
- ansible-role-system
```