community.general.openwrt_init – Manage services on OpenWrt.¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.openwrt_init
.
Requirements¶
The below requirements are needed on the host that executes this module.
An OpenWrt system (with python)
Parameters¶
Examples¶
- name: Start service httpd, if not running
community.general.openwrt_init:
state: started
name: httpd
- name: Stop service cron, if running
community.general.openwrt_init:
name: cron
state: stopped
- name: Reload service httpd, in all cases
community.general.openwrt_init:
name: httpd
state: reloaded
- name: Enable service httpd
community.general.openwrt_init:
name: httpd
enabled: yes
Authors¶
Andrew Gaffney (@agaffney)