Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sergelogvinov/ansible-role-system
- Owner: sergelogvinov
- License: mit
- Created: 2023-02-11T18:49:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T06:55:16.000Z (10 months ago)
- Last Synced: 2024-12-24T01:39:42.779Z (about 1 month ago)
- Topics: ansible-role
- Language: Jinja
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.yamlsystem_cpufrequtils_governor: schedutil
# For proxmox server
system_packages:
- tcpdump
- htop
- iftopsystem_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
```