Skip to main content

A CLI tool for managing Ansible projects.

Project description

asb_cli

asb_cli 是一个用于管理 Ansible 项目的命令行工具。

功能

  • asb_cli init: 创建一个标准的 Ansible 项目目录。
  • asb_cli role: 创建一个类似 ansible-galaxy 的 roles 目录结构。
  • asb_cli playbook: 创建一个单独的 Ansible playbook 文件。

安装

python setup.py develop
# 或者使用 pip 安装
pip install -e .

使用

# project
asb_cli init .
asb_cli init ./myprojkect
asb_cli init ../myprojkect
asb_cli init demo1
asb_cli init /tmp/test/demo1

# role
asb_cli role .
asb_cli role demo2
asb_cli role ../demo10
asb_cli role /tmp/test/demo1

# playbook
asb_cli playbook --name site.yml .
asb_cli playbook --name custom.yml ./playbooks
# 在指定绝对路径创建名为 prod.yml 的 playbook
asb_cli playbook --name prod.yml /tmp/test/playbooks
# 直接指定文件路径创建 playbook
asb_cli playbook --name custom.yml ./playbooks/custom.yml

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

asb_cli-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

asb_cli-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file asb_cli-0.1.0.tar.gz.

File metadata

  • Download URL: asb_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.6

File hashes

Hashes for asb_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e873b4969754e05ace94690a17f895faeb6bf3b4dac2c3642db66b8ba7f2a247
MD5 afa0af68c885cde67e60f27a73bd2c7a
BLAKE2b-256 7895194680a6b7032f55e63163fda345ead502c5066e94e0c0c7c663b4d5b56f

See more details on using hashes here.

File details

Details for the file asb_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: asb_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.6

File hashes

Hashes for asb_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f95e9b429ff33dc52559d1ad04100dc91186a43b87f8a989f1abec4bcf39931
MD5 bb1be9cdded6a68f9339937a697c56c5
BLAKE2b-256 f2b1241885a54f82932f5a9706532d46e33c7b7f5034f5461bf1b95e7f4c0f48

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