Skip to content

Commit

Permalink
Use "{{ hostvars['localhost']['awsRegion'] }}"
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Mar 7, 2024
1 parent 632541e commit 9e5bb06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rhel/ed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
- name: Add ED Tags
amazon.aws.ec2_tag:
aws_profile: '{{ awsProfile }}'
region: eu-west-2
region: "{{ hostvars['localhost']['awsRegion'] }}"
resource: '{{ item }}'
tags:
Name: '{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ productName }}'
Expand Down
2 changes: 1 addition & 1 deletion rhel/extend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- name: Add extend Tags
amazon.aws.ec2_tag:
aws_profile: '{{ awsProfile }}'
region: eu-west-2
region: "{{ hostvars['localhost']['awsRegion'] }}"
resource: '{{ item }}'
tags:
Name: '{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ productName }}'
Expand Down
5 changes: 2 additions & 3 deletions rhel/variables.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"myUsername": "support",
"myPassword": "strongPassword",
"imageName": "RHEL9",
"keyName": "support",
"keyLocation": "~/.ssh/support.pem",
"securityGroupsEMEA": "['sg-XXXXXX','sg-XXXXXX']",
"securityGroupsAMS": "['sg-XXXXXX','sg-XXXXXX']",
"securityGroupsAPJ": "['sg-XXXXXX','sg-XXXXXX']",
"awsProfile": "848105473048_Fed_COBOL2_Compute",
"webAPI": "https://WebAPI.com/",
"vmCount": 1,
"ssoEmail": "[email protected]",
"ssoPassword": "strongPassword",
"ssoMethod": "1",
"ssoToken": "XXXXXX",
"webAPI": "https://WebAPI.com/"
"ssoToken": "XXXXXX"
}

0 comments on commit 9e5bb06

Please sign in to comment.