https://github.com/oefenweb/ansible-rc-local
Ansible role to manage rc.local in Debian-like systems
https://github.com/oefenweb/ansible-rc-local
ansible debian rc-local ubuntu
Last synced: 11 months ago
JSON representation
Ansible role to manage rc.local in Debian-like systems
- Host: GitHub
- URL: https://github.com/oefenweb/ansible-rc-local
- Owner: Oefenweb
- License: mit
- Created: 2016-09-01T08:34:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T10:57:26.000Z (over 2 years ago)
- Last Synced: 2024-03-11T11:59:10.316Z (over 2 years ago)
- Topics: ansible, debian, rc-local, ubuntu
- Language: Dockerfile
- Size: 93.8 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## rc-local
[](https://github.com/Oefenweb/ansible-sysfs/actions?query=workflow%3ACI)
[](https://galaxy.ansible.com/Oefenweb/rc_local)
Manages rc.local in Debian-like systems.
#### Requirements
None
#### Variables
* `rc_local_commands`: [default: `[]`]: Commands to add to `rc.local`
#### Dependencies
None
#### Example
##### Simple
```yaml
---
- hosts: all
roles:
- oefenweb.rc-local
```
##### Advanced
```yaml
---
- hosts: all
roles:
- oefenweb.rc-local
vars:
rc_local_commands:
- |
# transparen hugepage
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled;
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag;
fi
- |
# something else
```
#### License
MIT
#### Author Information
* Mischa ter Smitten
#### Feedback, bug-reports, requests, ...
Are [welcome](https://github.com/Oefenweb/ansible-rc-local/issues)!