tftpd

Ansible Role: tftpd

An Ansible role that installs and configures tftpd.

Table of Contents

Requirements

  • Ansible 2+

Role Variables

Whether to enable the service or not:

tftpd_service: no

The root directory that is served:

tftpd_root: '/var/lib/tftpboot'

The file containing file name mappings:

tftpd_mapfile: '/etc/tftp-mappings.conf'

The mappings themselves are unset by default. You can define your own list of mappings, e.g. to replace backslashes with forward slashes:

tftpd_mappings:
  - operation: 'rg'
    regex: '\\'
    replacement: '/'

Dependencies

Example Playbook

Add to requirements.yml:

---

- src: idiv-biodiversity.tftpd

...

Download:

$ ansible-galaxy install -r requirements.yml

Top-Level Playbook

Write a top-level playbook:

---

- name: head server
  hosts: head

  roles:
    - role: idiv-biodiversity.tftpd
      tags:
        - tftpd

...

Role Dependency

Define the role dependency in meta/main.yml:

---

dependencies:

  - role: idiv-biodiversity.tftpd
    tags:
      - tftpd

...

License

MIT

Author Information

This role was created in 2018 by Christian Krause aka wookietreiber at GitHub, HPC cluster systems administrator at the German Centre for Integrative Biodiversity Research (iDiv).

About

installs and configures tftpd

Install
ansible-galaxy install idiv-biodiversity/ansible-role-tftpd
GitHub repository
License
mit
Downloads
46