community.openwrt.nohup module – Starts a command in background and returns
Note
This module is part of the community.openwrt collection (version 0.5.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.openwrt.
To use it in a playbook, specify: community.openwrt.nohup.
Synopsis
The community.openwrt.nohup module start runs a command in a shell using OpenWrt’s
start-stop-daemon.The module dispatches the command and return.
Note
This module has a corresponding action plugin.
Parameters
Parameter |
Comments |
|---|---|
Command to execute. Execution takes place in a shell. |
|
Seconds to wait, before command is run. Default: |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Can run in |
|
Support: none |
Returns details on what has changed (or possibly needs changing in |
|
Platform: OpenWrt |
Target platform for this module. |
Notes
Note
This module does not support check_mode.
Examples
- name: Wait 3 seconds, then restart network
community.openwrt.nohup:
command: /etc/init.d/network restart
delay: 3