Skip to content

Commit

Permalink
var and file lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcalalang committed Jun 12, 2024
1 parent c3e9965 commit daa2416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion distributed-cloud/terraform/infrastructure/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ provider "random" {
# Configuration options
}
provider "volterra" {
api_p12_file = "../../../certs/f5-sa.console.ves.volterra.io.api-creds.p12"
api_p12_file = "../../../certs/f5-sa.api-creds.p12"
url = "https://f5-sa.console.ves.volterra.io/api"
}
8 changes: 3 additions & 5 deletions nginx/ansible/configuration/roles/nginx/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- name: Create or update NGINX One {{ nginx-one-f5xc-tenant }} azure-instances Group Declaration
delegate_to: localhost
uri:
body: "{{ lookup('file','{{ item }}') }}"
body: "{{ lookup('ansible.builtin.file','../config/azure-instances/nginx.json') }}"
body_format: json
headers:
Authorization: "{{ nginx-one-f5xc-api-token }}"
Expand All @@ -37,8 +37,6 @@
retries: 30
delay: 5
until: "(result.status == 200) or (result.status == 202)"
with_nested:
- "{ azure_instances }"
with_fileglob:
- "../config/azure-instances/nginx.json"
with_items:
- azure_instances
when: state == "present"

0 comments on commit daa2416

Please sign in to comment.