https://github.com/gpproton/ansible-collections
My personal ansible collection that include roles and possible dependencies
https://github.com/gpproton/ansible-collections
ansible ansible-role development linux macos
Last synced: 8 months ago
JSON representation
My personal ansible collection that include roles and possible dependencies
- Host: GitHub
- URL: https://github.com/gpproton/ansible-collections
- Owner: gpproton
- License: other
- Created: 2023-11-07T10:54:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T01:52:55.000Z (almost 2 years ago)
- Last Synced: 2025-06-07T03:06:50.133Z (about 1 year ago)
- Topics: ansible, ansible-role, development, linux, macos
- Language: Shell
- Homepage:
- Size: 3.58 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ansible Collections
A personal collection of ansible tasks and roles
## Setup requirments
### Python setup
```shell
## Debian/Ubuntu
sudo apt install -y python3 python3-virtualenv python3-virtualenv-clone
## Fedora
sudo dnf install -y python3 python3-virtualenv python3-virtualenv-clone
```
Create virtual environment for unix OS
```shell
./init.sh
```
Run molecule test for a role
```shell
./test role-default.yml
```
## Usage
Create requirement file
```bash
touch requirements.yml
```
```yaml
---
collections:
- name: git@github.com:gpproton/ansible-collections.git
type: git
version: main
```
install with:
```bash
ansible-galaxy install --force -r requirements.yml
## Bash tweaks
Fix bash completion
```shell
case "$SHELL" in
*bash*)
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
;;
esac
```
## Refrences
- [Ansible pilot](https://github.com/lucab85/ansible-pilot)
- [Grafana Collection](https://github.com/grafana/grafana-ansible-collection)
- [Geerlingguy Ansible](https://github.com/geerlingguy/ansible-role-docker)