Questions tagged [variables]
The variables tag has no usage guidance.
3
questions
2
votes
1answer
30 views
Ansible - Variable expansion inside hostvars declaration?
I have a hardcoded hostvars line, like so:
node1_hostname={{ hostvars['192.168.0.162']['node1_hostname'] }}
I have a set_fact variable from a previous play that I'd like to expand in the host section ...
0
votes
1answer
55 views
Enable/disable resource in terraform using count
I added a piece of code to support enable/disable to the feature - I used the count. Now I have the following problem:
ERROR:
on modules/eventhub/main.tf line 110, in resource "azurerm_eventhub&...
0
votes
2answers
288 views
ansible: difference between a variable and a fact
While I'm using Ansible for quite some time, I'm not sure I really understand the differences between a variable and a fact.
Would it be any difference doing
- set_fact:
nginx_ssl: /etc/nginx/ssl
...