Giter Site home page Giter Site logo

ansible-role-tftp's People

Contributors

bertvv avatar trinitronx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-role-tftp's Issues

TFTP isn't running straight out of the box, some bits are missing

Hi folks, thanks for sharing the stuff, was looking for a non-xinetd TFTP for my deployments.

I've been playing with the role on CentOS 7 minimal and "standard" versions, and found it's not running out of box due to some missing bits.

Issue #1
The playbook won't run due to missing "policycoreutils-python"
Solution
../tftp/vars/RedHat.yml

tftp_packages:
  - libsemanage-python
  - policycoreutils-python
  - tftp-server

--- end of Issue #1

Issue #2
TFTP won't be accessible due to missing firewalld rule
Solution
../tftp/handlers/main.yml

- name: restart firewalld
  service:
    name: firewalld
    state: restarted

Alternative handler (tested, less preferable)

#- name: restart firewalld
#  command: systemctl restart firewalld

Standard service handler below will cause firewalld to stop on CentOS 7

#- name: reload firewalld
#  service:
#    name: firewalld
#    state: reloaded

../tftp/tasks/main.yml

- name: Allow access to TFTP service in firewalld
  firewalld:
    service: tftp
    permanent: yes
    state: enabled
  tags: tftp
  notify:
    - restart firewalld

--- end of Issue #2

Cheers,

Incompatible with Python 3.x - ["No package libsemanage-python available."]

This role fails on RHEL8.1 if ansible_python_interpreter : /usr/bin/python3.6 is used because of some dependencies.

TASK [bertvv.tftp : Install packages] *****************************************************************
failed: [192.168.1.254] (item=libsemanage-python) => {"ansible_loop_var": "item", "changed": false, "failures": ["No package libsemanage-python available."], "item": "libsemanage-python", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
ok: [192.168.1.254] => (item=tftp-server)

Fixed by changing vars/RedHat.yml section:

tftp_packages:
  # - libsemanage-python
  - python3-policycoreutils
  - python3-libselinux
  - python3-libsemanage
  - tftp-server

So instead of using libsemanage-python i updated it to python3-libsemanage.

Otherwise works great and does it's job!
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.