diff --git a/playbooks/sync_all.yaml b/playbooks/sync_all.yaml index 4e914f7..c9f01c7 100644 --- a/playbooks/sync_all.yaml +++ b/playbooks/sync_all.yaml @@ -34,7 +34,7 @@ - debug: msg: "{{ result.stdout_lines }}" - when: inventory_hostname in groups['raspberrypi5'] + when: inventory_hostname == selected_server - name: Replace ip ansible.builtin.lineinfile: path: "{{ item }}"