8000 GitHub - roedie/ansible-sysfs: Ansible role to manage sysfs in Debian-like systems
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

roedie/ansible-sysfs

 
 

Repository files navigation

sysfs

Build Status Ansible Galaxy

Manages sysfs in Debian-like systems (using sysfsutils).

Requirements

  • sysfsutils (will be installed)

Variables

  • sysfs_sysfs_d_files [default: {}]: /etc/sysfs.d/* file(s) declarations
  • sysfs_sysfs_d_files.key: The name of the sysfs configuration file (e.g 001-transparent-hugepage.conf)
  • sysfs_sysfs_d_files.key.{n}.action [optional]: mode or owner, when not specified the new value for specified attribute is set
  • sysfs_sysfs_d_files.key.{n}.attribute [required]: Name of an attribute, specified as a path without /sys prefix (e.g. kernel/mm/transparent_hugepage/enabled)
  • sysfs_sysfs_d_files.key.{n}.value [required]: Value for the attribute (e.g. never)

Dependencies

None

Example

Simple
---
- hosts: all
  roles:
    - sysfs
Advanced
---
- hosts: all
  roles:
    - sysfs
  vars:
    sysfs_sysfs_d_files:
      000-power-state.conf:
        - action: mode
          attribute: power/state
          value: '0660'
        - action: owner
          attribute: power/state
          value: 'root:vagrant'
      001-transparent-hugepage.conf:
        - attribute: kernel/mm/transparent_hugepage/enabled
          value: never
        - attribute: kernel/mm/transparent_hugepage/defrag
          value: never

License

Apache

Author Information

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role to manage sysfs in Debian-like systems

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 76.7%
  • Dockerfile 23.3%
0