From 65865c347ca7bea9b87394c2cc60254ac5c74bfb Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 20 Sep 2025 15:32:26 +0200 Subject: [PATCH] chore(ansible): add tag and source --- knowledge base/ansible.md | 2 ++ snippets/ansible/tasks.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/knowledge base/ansible.md b/knowledge base/ansible.md index 732e1f5..41a88c4 100644 --- a/knowledge base/ansible.md +++ b/knowledge base/ansible.md @@ -1795,6 +1795,7 @@ Another _better (?)_ solution in playbooks/roles would be to sanitize the input - [How can I pass variable to ansible playbook in the command line?] - [Ansible Map Examples - Filter List and Dictionaries] - [Advanced playbook syntax] +- [Ansible delegation madness: delegate_to and variable substitution] [6 ways to speed up ansible playbook execution]: https://wearenotch.com/speed-up-ansible-playbook-execution/ [ansible - how to remove an item from a list?]: https://stackoverflow.com/questions/40927792/ansible-how-to-remove-an-item-from-a-list#40927834 +[Ansible delegation madness: delegate_to and variable substitution]: https://makk.es/blog/ansible-delegation-madness/ [Ansible Map Examples - Filter List and Dictionaries]: https://www.middlewareinventory.com/blog/ansible-map/ [ansible roles: basics, creating & using]: https://spacelift.io/blog/ansible-roles [ansible vault tutorial]: https://piyops.com/ansible-vault-tutorial diff --git a/snippets/ansible/tasks.yml b/snippets/ansible/tasks.yml index 9bb8fc6..0b1b51e 100644 --- a/snippets/ansible/tasks.yml +++ b/snippets/ansible/tasks.yml @@ -601,6 +601,7 @@ tags: - update_inventory - new_instance + - add_host_to_inventory when: new_instance.instance_id is defined block: - name: Add the new instance to the play's inventory