Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webarchitect609/ansible-role-skeleton
My ansible role skeleton to be used by `ansible-galaxy init` cli command.
https://github.com/webarchitect609/ansible-role-skeleton
ansible ansible-roles
Last synced: about 1 month ago
JSON representation
My ansible role skeleton to be used by `ansible-galaxy init` cli command.
- Host: GitHub
- URL: https://github.com/webarchitect609/ansible-role-skeleton
- Owner: webarchitect609
- License: bsd-3-clause
- Created: 2020-03-09T08:34:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T11:32:04.000Z (11 months ago)
- Last Synced: 2024-03-10T12:37:54.349Z (11 months ago)
- Topics: ansible, ansible-roles
- Language: Shell
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Skeleton for Ansible role
=========================Requirements
------------- [Ansible](https://www.ansible.com/)
- `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:
```shell
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
```shell
~/projects/webarchitect609/ansible-role-skeleton/bin/init baz
```
or just
```shell
my-ansible-galaxy-role-init baz
```
and the folder `ansible-role-baz` will be created, tuned for developing `webarchitect609.baz` Ansible role.### General usage
```shell
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.