https://github.com/tulibraries/ansible-playbook-template
Template for Creating Ansible Playbooks
https://github.com/tulibraries/ansible-playbook-template
docs playbooks
Last synced: 5 months ago
JSON representation
Template for Creating Ansible Playbooks
- Host: GitHub
- URL: https://github.com/tulibraries/ansible-playbook-template
- Owner: tulibraries
- Created: 2019-03-12T13:22:12.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-10-03T18:43:26.000Z (9 months ago)
- Last Synced: 2025-10-03T20:35:49.035Z (9 months ago)
- Topics: docs, playbooks
- Language: Shell
- Size: 35.2 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TU Libraries Ansible Playbook Template
This repository will help you generate a new Ansible playbook for a TU Libraries application.
## Generating a new playbook
Run the `./bin/generate_playbook` command passing in the name of the application this will be a playbook for as a command line argument.
`./bin/generate_playbook some-application`
This will create a new playbook in the `generated` directory named `ansible-playbook-some-application`.
This generated playbook will contain:
* a basic `README.md`
* an `inventory` directory with vagrant, qa, staging, and prod inventories.
* a `roles` directory where external roles will be stored (but not version controlled).
* a `playbook.yml` for composing the main logic for your playbook.
* a `requirements.yml` for external roles that will be used by this playbook.
* an `ansible.cfg` file that is common to TU Libraries playbooks
* a `Pipfile` and `.python-version` for python requirements, like the ansible version to use
* a `.gitignore`
For more detail on what that playbook contains, see the [README added as part of the new playbook](templates/README.md)