updating and renaming playbook
This commit is contained in:
33
provision.yml
Normal file
33
provision.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
# local or remote connection
|
||||||
|
# - hosts: all
|
||||||
|
- hosts: 127.0.0.1
|
||||||
|
connection: local
|
||||||
|
|
||||||
|
# variable flags
|
||||||
|
vars:
|
||||||
|
install_cargo_packages: true
|
||||||
|
install_pyenv_python: true
|
||||||
|
target_system: mac
|
||||||
|
# mac overrides
|
||||||
|
default_user: dtomlinson
|
||||||
|
ansible_become_pass: "{{ vault_ansible_become_pass }}"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: nickjj.fail2ban
|
||||||
|
tags: [server, fail2ban]
|
||||||
|
when: target_system == "linux"
|
||||||
|
- role: setup
|
||||||
|
when: target_system == "linux"
|
||||||
|
- role: ssh
|
||||||
|
when: target_system == "linux"
|
||||||
|
- role: docker
|
||||||
|
when: target_system == "linux"
|
||||||
|
- role: mac
|
||||||
|
when: target_system == "mac"
|
||||||
|
- role: shell
|
||||||
|
- role: python
|
||||||
|
- role: rust
|
||||||
|
- role: terraform
|
||||||
|
- role: go
|
||||||
|
- role: cleanup
|
||||||
Reference in New Issue
Block a user