@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
85 lines (76 loc) • 1.73 kB
YAML
version: '3'
tasks:
bin:
run: once
cmds:
- task: install
vars:
BIN: bin
PACKAGE: github.com/marcosnils/bin@latest
status:
- type bin &> /dev/null
bundle:
deps:
- bin
- goofys
- goreleaser
- nfpm
get:
run: when_changed
log:
error: Failed to acquire Go package named `{{.PACKAGE}}`
start: Getting Go package named `{{.PACKAGE}}`
success: Retrieved Go packaged named `{{.PACKAGE}}`
cmds:
- task: :install:software:go
- go get {{.PACKAGE}}
status:
- type {{.BIN}} > /dev/null
goofys:
run: once
cmds:
- task: install
vars:
BIN: goofys
PACKAGE: github.com/kahing/goofys@latest
status:
- type goofys > /dev/null
goreleaser:
run: once
cmds:
- task: install
vars:
BIN: goreleaser
PACKAGE: github.com/goreleaser/goreleaser@latest
status:
- type goreleaser > /dev/null
gotestsum:
run: once
cmds:
- task: install
vars:
BIN: gotestsum
PACKAGE: gotest.tools/gotestsum@latest
status:
- type gotestsum > /dev/null
install:
run: when_changed
log:
error: Failed to install `{{.PACKAGE}}` with Go
start: Installing Go package named `{{.PACKAGE}}`
success: Successfully installed `{{.PACKAGE}}`
cmds:
- task: :install:software:go
- go install {{.PACKAGE}}
status:
- type {{.BIN}} > /dev/null
nfpm:
run: once
cmds:
- task: install
vars:
BIN: nfpm
PACKAGE: github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
status:
- type nfpm > /dev/null