Ansible
Set variable from variable?
Archives
Ansible Project
ansible-project
Michael_DeHaan2
(Michael DeHaan)
March 23, 2013, 3:36pm
1
Jinja2 has a 'set' keyword for this purpose, as well as if/else directives.
Related topics
Topic
Replies
Views
Activity
Is there a 1.2 equivilant of "when_set: $var"?
Ansible Project
5
5
May 2, 2013
Pick a variable based on if another variable is set
Ansible Project
1
13
April 24, 2019
Upgraded variables AND conditionals in 1.2 - feedback welcome
Ansible Project
10
9
April 10, 2013
apt_repository variable substitution
Ansible Project
ansible-project
0
3
June 2, 2013
Modify variables during the playbook
Ansible Project
0
12
October 26, 2016