https://github.com/phlcrny/plastertemplates
Templates so I can be good AND lazy
https://github.com/phlcrny/plastertemplates
ansible ansible-playbook ansible-role plaster powershell
Last synced: 11 months ago
JSON representation
Templates so I can be good AND lazy
- Host: GitHub
- URL: https://github.com/phlcrny/plastertemplates
- Owner: phlcrny
- License: mit
- Created: 2020-02-22T22:19:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-29T13:19:27.000Z (about 4 years ago)
- Last Synced: 2025-01-26T04:27:56.008Z (about 1 year ago)
- Topics: ansible, ansible-playbook, ansible-role, plaster, powershell
- Language: Dockerfile
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Plaster Templates

[Plaster](https://github.com/PowerShell/Plaster) is a Powershell project templater which makes it quicker to create consistent projects.
## Prerequisites
To make any use of these templates, you'll need the _Plaster_ Powershell module to be installed.
```Powershell
Install-Module Plaster
```
## Getting Started
### Powershell
```Powershell
# Clone this repo
git clone ./plaster-templates
# Create an example
mkdir ./example-ansible-role
# Template a folder out
Invoke-Plaster -TemplatePath './plaster-templates/AnsibleRole/' -DestinationPath './example-ansible-role'
```
### Docker
A basic Docker image is provided for machines without Powershell.
```Powershell
# Run the container in the current working directory
docker run -it --rm -v "$(pwd)":/workingDir --name plaster phlcrny/plaster
# Template a new Ansible Playbook in a sub-folder of the mapped location
Invoke-Plaster -TemplatePath '/templates/AnsiblePlaybook' -Destination '/workingDir/NewPlaybook' -Name NewPlaybook
```