--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: yes tasks: - name: "[CONFIG UPDATE] Comprobando si es necesario realizar update " debug: msg: "No es necesario realizar update en la máquina" when: update_enabled is not defined or not update_enabled - name: "[CONFIG UPDATE] Config update" import_role: name: config-update-and-upgrade-packages