generated from CC/VMServiceTemplate
destroy module
This commit is contained in:
@@ -9,6 +9,15 @@ on:
|
|||||||
default: "terraform"
|
default: "terraform"
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
tfvars_file:
|
||||||
|
description: "Which tfvars file to use"
|
||||||
|
required: true
|
||||||
|
default: "single.tfvars.example"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- single.tfvars.example
|
||||||
|
- multi.tfvars.example
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
destroy:
|
destroy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -22,6 +31,15 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check files & Select tfvars
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
#rm ansible/inventory/inventory.yml
|
||||||
|
mkdir -p ansible/inventory
|
||||||
|
cd terraform
|
||||||
|
#rm vm_data.yml
|
||||||
|
cp "${{ inputs.tfvars_file || 'single.tfvars.example' }}" terraform.tfvars
|
||||||
|
|
||||||
- name: Setup Terraform
|
- name: Setup Terraform
|
||||||
uses: hashicorp/setup-terraform@v4
|
uses: hashicorp/setup-terraform@v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user