Giter Site home page Giter Site logo

ansible-role-netbox's People

Contributors

duviful avatar johanneskastl avatar jvoss avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ansible-role-netbox's Issues

Add support to plugins

Hello dear sir.
it would be nice to add custom plugins to local_requirements.txt and install them automatically.

a task in the file configure.yml similar to this one can do the job:

- name: configure | add the custom plugins local_requirements.txt
  ansible.builtin.lineinfile:
    path: "{{ netbox_current_path }}/local_requirements.txt"
    line: "{{ item.name }}"
    regexp: "^{{ item.name }}"
    owner: "{{ netbox_user }}"
    mode: '0644'
    create: yes
  with_items: "{{ netbox_plugins }}"

I'm using the already present variable netbox_plugins to generate the list of names to be added to the local_requirements.txt

I might open a PR but I suspect you are already working on something like this.
let me know.

Best

Missing packages when installing on Fedora

I used this role successfully on Fedora 37 (see #57 ).

I had to add some packages to get it working, see this playbook:

- name: 'Install netbox'
  hosts: 'all'
  gather_facts: true
  become: true

  pre_tasks:

    - name: Install cronie
      ansible.builtin.package:
        name: cronie
        state: present

    - name: Install acl
      ansible.builtin.package:
        name: acl
        state: present

    - name: Install python3-django
      ansible.builtin.package:
        name: python3-django
        state: present

  roles:
    - role: 'jvoss.netbox'

If desired I can add a PR to make the role install those packages on Fedora.

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.