Skip to main content

Plugin to Excute AWX Task from Netbox

Project description

netbox-task

Plugin dùng netbox để thực thi các nhiệm vụ/yêu cầu cần thiết qua ansible playbook hoặc script..

Prerequisite

Netbox >= 4.0

Description

Lets say i want to run some task for update infomation from VirtualMachine that be in our Hypervisor to the Netbox or leverage exist ansible playbook to perform some simple action such as install package, reboot server ...

Flow

How to install

Install this plugin from pypi

cd /opt/netbox
source venv/bin/activate
pip install netbox-task

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py

PLUGINS = [
   'netbox_task'
]

Migrate the model to create newly databases

python netbox/manage.py migrate netbox_task
systemctl restart netbox

Known Isssues

  • The current version only support with Netbox VirtualMachine and only some default parameter will be passed into the request.
  • There is no asynchronous processing, because task status that depend on AWX runtime.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_task-1.0.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_task-1.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file netbox_task-1.0.0.tar.gz.

File metadata

  • Download URL: netbox_task-1.0.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for netbox_task-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa43e2f7192e813d4d7140a516f193fe74d1d79e55915b3b1136c71a0b4bdbd2
MD5 91a17e5216b69e3d4c19cbad2d78b36b
BLAKE2b-256 76b9e202bb3bfdb20f5811a5620991db59c0662c1ac96276d5add84a86d47129

See more details on using hashes here.

File details

Details for the file netbox_task-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_task-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for netbox_task-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19f033d70bf9daca64744d576127e33589a50085bf19a46bddfdee39db908dfb
MD5 a333abfbb31763c592d093ee81aad8cb
BLAKE2b-256 a00664026e98d3cb455724e9c53c562d5219ceefeb86fcee4f7de183a78bdf55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page