https://github.com/pythoninthegrass/ansible_role_template
Boilerplate for ansible templates
https://github.com/pythoninthegrass/ansible_role_template
Last synced: 2 months ago
JSON representation
Boilerplate for ansible templates
- Host: GitHub
- URL: https://github.com/pythoninthegrass/ansible_role_template
- Owner: pythoninthegrass
- License: unlicense
- Created: 2024-05-24T19:15:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-24T19:23:07.000Z (over 1 year ago)
- Last Synced: 2025-02-12T21:12:50.400Z (11 months ago)
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Template Role
=========
Boilerplate `pre_tasks` role for Ansible.
Requirements
------------
Generated initially via `galaxy init ./roles/pre-tasks` command.
Role Variables
--------------
There aren't any variables declared as they're all setup in the `tasks/main.yml` file.
Dependencies
------------
* `ansible`
* `ansible-lint`
* `ansible.cfg`
* `hosts` file
Example Playbook
----------------
* `playbook.yml`
```yaml
---
- name: Call pre-tasks role
hosts: all
become: false
roles:
- pre-tasks
```
* Usage
```bash
# all hosts
ansible-playbook playbook.yml
# only dev group
ansible-playbook playbook.yml --limit dev
```
License
-------
Unlicense