mirror of
https://github.com/trailofbits/algo
synced 2024-11-18 09:25:38 +00:00
22 lines
507 B
YAML
22 lines
507 B
YAML
---
|
|
- name: Provision the server
|
|
hosts: localhost
|
|
tags: always
|
|
become: false
|
|
vars_files:
|
|
- config.cfg
|
|
|
|
tasks:
|
|
- block:
|
|
- name: Local pre-tasks
|
|
import_tasks: playbooks/cloud-pre.yml
|
|
|
|
- name: Include a provisioning role
|
|
include_role:
|
|
name: "{{ 'local' if algo_provider == 'local' else 'cloud-' + algo_provider }}"
|
|
|
|
- name: Local post-tasks
|
|
import_tasks: playbooks/cloud-post.yml
|
|
rescue:
|
|
- include_tasks: playbooks/rescue.yml
|