hi,
I want to take different sligthly routes in a playbook based on the particular
remote. All remotes are in the same hosts group.
I am trying to do this by setting a fact based on the ansible_fqdn value.
Based on that fact ('keycloak' in my example here) I am including different
tasks files.
these 2 options do not work though:
################################################################
- ansible.builtin.set_fact:
level: keycloak
when: ansible_fqdn == VM-0312.step.zrz.internal
- ansible.builtin.set_fact:
level: keycloak
when: "{{ ansible_fqdn == VM-0312.step.zrz.internal }}"
################################################################
is there a way to achieve this?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/238430038.550616.1688310753770%40office.mailbox.org.