Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [variables]

The tag has no usage guidance.

2
votes
1answer
42 views

ANSIBLE how to locate dict at host_vars file?

I try to master the work with dictionaries at ansible. When I include dict to playbook as at example all works like charm. But when I try to include vars block to my host_vars/myserv.yml file like ...
0
votes
1answer
75 views

Ansible - manage installed apps and send output via email - variables are filling wrong

so i have this playbook, which checking, if there are installed selected packages. nothing special there. Then i would like to send an output to my email, if everything went right etc. --- - name: ...
0
votes
0answers
167 views

How can I add multiple variables in Ansible PB from another file

I plan to add few hundred of lines in some files using Ansible. My idea is to put all those lines in a file and then use a variable inside the playbook. This is the first part. The second one is ...
1
vote
1answer
2k views

Get PowerShell command output as a variable in bat (cmd) script

I'm trying to get FQDN of a host in some .cmd file. We have disjointed AD domain so "@echo %COMPUTERNAME%.%USERDNSDOMAIN%" does not work. I mean it works, but returns wrong value. The solution I ...
0
votes
0answers
86 views

Ansible: making a task generic for instance launch

I have a following ansible task where in I am passing variable values from group_vars/all.yml Now this is kind of hard coded for instance type i3.large where in I've specific file system path /dev/...