Created
September 18, 2024 06:15
-
-
Save mbaldessari/9c0504dad01d7f3be29f418058dac1da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
gather_facts: false | |
vars: | |
vault_pod: "vault-0" | |
vault_pods_list: | |
- "vault-0" | |
tasks: | |
- name: Set followers | |
ansible.builtin.set_fact: | |
followers: "{{ vault_pods_list | ansible.builtin.difference(vault_pod) }}" | |
- name: Debug followers | |
ansible.builtin.debug: | |
msg: "{{ followers }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment