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

aliases: cmd

string / required

Command to execute. Execution takes place in a shell.

delay

string

Seconds to wait, before command is run.

Default: 0

Attributes

Attribute

Support

Description

check_mode

Support: none

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

Returns details on what has changed (or possibly needs changing in check_mode), when in diff mode.

platform

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

Authors

  • Markus Weippert (@gekmihesg)