ncstate.network.tftp_send (1.1.3) — module

Send data directly to TFTP server from where ansible runs.

Authors: Matt Haught (@haught)

Install collection

Install with ansible-galaxy collection install ncstate.network:==1.1.3


Add to requirements.yml

  collections:
    - name: ncstate.network
      version: 1.1.3

Description

This module allows sending files and text using TFTP.

The module sends from wherever the playbook is run.

Inputs

    
src:
    description:
    - The text of the source file.
    required: true
    type: str

host:
    description:
    - The IP address or hostname of destination TFTP server.
    required: true
    type: str

port:
    default: 69
    description:
    - The port of destination TFTP server.
    required: false
    type: int

blocksize:
    default: 512
    description:
    - TFTP transfer blocksize.
    required: false
    type: int

dest_filename:
    description:
    - The destination filename.
    required: true
    type: str

Outputs

stdout:
  description: The set of responses from the commands
  returned: always apart from low level errors (such as action plugin)
  sample:
  - '...'
  - '...'
  type: list
stdout_lines:
  description: The value of stdout split into a list
  returned: always
  sample:
  - - '...'
    - '...'
  - - '...'
  - - '...'
  type: list