How can I implement below condition, to set value of dictionary config
in Ansible ?
Dictionary config
and variable turn_on_encryption
are both specified in same vars file.
if turn_on_encryption == true
, then:
config:
path: /var/www/html
cert_path: /path/to/certificate
protocol: https
else:
config:
path: /var/www/html
cert_path: ""
protocol: http
Is this possible with Ansible ?