Skip to content

Commit ce46be9

Browse files
authored
Add terraform version in test build logs (#5110)
1 parent 20e6d1c commit ce46be9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
- name: "Setup Integration tests for Cluster Toolkit"
1818
hosts: localhost
1919
tasks:
20+
## Display Terraform Version
21+
- name: "Get Terraform Version"
22+
ansible.builtin.command: terraform version
23+
changed_when: false
24+
register: terraform_version_output
25+
26+
- name: "Print Terraform Version"
27+
ansible.builtin.debug:
28+
msg: |
29+
---- TERRAFORM VERSION ----
30+
{{ terraform_version_output.stdout }}
31+
---------------------------
32+
2033
## Create SSH Keys
2134
- name: "Create .ssh folder"
2235
ansible.builtin.file:

tools/cloud-build/daily-tests/ansible_playbooks/slurm-integration-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
- name: "Setup Integration tests for Cluster Toolkit"
1818
hosts: localhost
1919
tasks:
20+
## Display Terraform Version
21+
- name: "Get Terraform Version"
22+
ansible.builtin.command: terraform version
23+
changed_when: false
24+
register: terraform_version_output
25+
26+
- name: "Print Terraform Version"
27+
ansible.builtin.debug:
28+
msg: |
29+
---- TERRAFORM VERSION ----
30+
{{ terraform_version_output.stdout }}
31+
---------------------------
32+
2033
## Create SSH Keys
2134
- name: "Create .ssh folder"
2235
ansible.builtin.file:

0 commit comments

Comments
 (0)