New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ceejbot/dirac

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ceejbot/dirac

add and remove hosts from an ansible inventory

  • 0.2.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@ceejbot/dirac

Add and remove hosts from ansible inventory files.

Parses existing files & preserves whitespace & comments.

on npm Tests Coverage

Usage

Install: npm install -g @ceejbot/dirac

Then run:

cat /path/to/inventory | dirac [--var name=val] [--group groupname] foo.example.com > output

Options:
  --remove     remove this host from inventory; all other options ignored [boolean]
  --group, -g  one or more groups to add this host to       [default: "generic"]
  --var, -v    host vars to set; name=val format
  --version    show version information                                [boolean]
  --help       Show help                                               [boolean]

You can specify as many var and group options as you need.

Notes

The Dirac Communicator is James Blish's name for an ansible-like communication device.

TODO

Handle variables better.

LICENSE

ISC.

Keywords

FAQs

Package last updated on 22 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc