Hi,
i am new to ansible and just rewrote some puppet-recipe with ansible
now...
I am looking for a way to reassign and also concatenate variables ?
user: myuser
vars:
base: /opt/productsuite
vars_files:
- vars/product.yml # this brings a piece of a directory-path
also: product: sqldb
tasks:
- action file path=$base/$user/$product/bin state=directory owner=
$user group=$group
So the directory string is long and i would like to replace it with a
new variable to make the playbook even shorter.
$thepath = "$base/$user/$product"
action file path=$thepath/bin state=directory owner=$user group=
$group
What i also cannot do is to invoke vars block a second time for
assignment of variables again which would help:
vars:
vars_files:
vars:
Some ideas ?
(ansible-0.3.1-1.el6, Centos 6.2)