An open API service indexing awesome lists of open source software.

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

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