项目作者: webarchitect609

项目描述 :
My ansible role skeleton to be used by `ansible-galaxy init` cli command.
高级语言:
项目地址: git://github.com/webarchitect609/ansible-role-skeleton.git
创建时间: 2020-03-09T08:34:35Z
项目社区:https://github.com/webarchitect609/ansible-role-skeleton

开源协议:

下载


Skeleton for Ansible role

Requirements

  • Ansible
  • bash, if you plan to use bin/init

How to use

Init script

  1. Clone this repo
  2. Make a symlink inside ~/bin(which must be in $PATH), pointing to bin/init in this repo. For example:
    1. ln -s ~/projects/webarchitect609/ansible-role-skeleton/bin/init ~/bin/my-ansible-galaxy-role-init
  3. Now go to any dir and call init script from there
    1. ~/projects/webarchitect609/ansible-role-skeleton/bin/init baz
    or just
    1. my-ansible-galaxy-role-init baz
    and the folder ansible-role-baz will be created, tuned for developing webarchitect609.baz Ansible role.

General usage

  1. ansible-galaxy role init --offline --role-skeleton "$SKELETON_DIR" -- "$ROLE_NAME"

, where $SKELETON_DIR is the dir where current repo is cloned and $ROLE_NAME is the name of the role, but without
vendor.

Then you have to go in role dir and manually remove .idea & bin directories.