Skip to content

Commit

Permalink
sap_vm_provision: add run once for ansible to terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed Nov 24, 2024
1 parent e543da1 commit 6037511
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
AWS_ACCESS_KEY_ID: "{{ sap_vm_provision_aws_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ sap_vm_provision_aws_secret_access_key }}"
AWS_REGION: "{{ sap_vm_provision_aws_region }}"
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -60,6 +61,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- name: Terraform Template for SAP - Google Cloud
register: terraform_template1_result
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -56,6 +57,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- name: Terraform Template for SAP - IBM Cloud
register: terraform_template1_result
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -56,6 +57,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- name: Terraform Template for SAP - IBM Cloud
register: terraform_template1_result
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -56,6 +57,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- name: Terraform Template for SAP - IBM PowerVM
register: terraform_template1_result
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -73,6 +74,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- name: Terraform Template for SAP - MS Azure
register: terraform_template1_result
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -61,6 +62,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- name: Terraform Template for SAP - VMware
register: terraform_template1_result
run_once: true
cloud.terraform.terraform:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
state: "{{ sap_vm_provision_terraform_state }}"
Expand Down Expand Up @@ -74,6 +75,7 @@

- name: Read outputs from project path
when: sap_vm_provision_terraform_state == "present"
run_once: true
cloud.terraform.terraform_output:
project_path: "{{ sap_vm_provision_terraform_work_dir_path }}"
register: terraform_output_project_path
Expand Down

0 comments on commit 6037511

Please sign in to comment.