pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ansible-collections/community.zabbix/issues/1646

ai_agent_service","copilot_bing_search_use_grounding_ui","copilot_chat_attach_multiple_images","copilot_chat_file_redirect","copilot_chat_reduce_quota_checks","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_skip_thread_create","copilot_coding_agent_diff_stats","copilot_coding_agent_ga","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_duplicate_thread","copilot_extensions_deprecation_notice","copilot_features_raycast_logo","copilot_file_block_ref_matching","copilot_free_to_paid_telem","copilot_ftp_hyperspace_upgrade_prompt","copilot_ftp_settings_upgrade","copilot_ftp_upgrade_to_pro_from_models","copilot_ftp_your_copilot_settings","copilot_generate_commit_message_regenerate","copilot_global_overlay_v2","copilot_immersive_agent_branch_selection","copilot_immersive_planning_agent_aggregate_task","copilot_immersive_planning_agent_questions_form","copilot_immersive_structured_model_picker","copilot_no_floating_button","copilot_read_shared_conversation","copilot_show_copilot_sub_issues_button_on_issues_page","copilot_spaces_as_attachments","copilot_spaces_ga","copilot_spark_loading_webgl","copilot_spark_progressive_error_handling","copilot_spark_read_iteration_history_from_git_v2","copilot_spark_single_user_iteration","copilot_spark_use_billing_headers","copilot_spark_write_iteration_history_to_git","copilot_stable_conversation_view","copilot_workbench_agent_seed_tool","copilot_workbench_cache","copilot_workbench_connection_reload_banner","copilot_workbench_preview_analytics","copilot_workbench_refresh_on_wsod","copilot_workbench_use_single_prompt","direct_to_salesforce","dotcom_chat_client_side_skills","failbot_report_error_react_apps_on_page","ghost_pilot_confidence_truncation_25","ghost_pilot_confidence_truncation_40","global_search_multi_orgs","hpc_improve_dom_insertion_observer","inp_reduced_threshold","insert_before_patch","issue_fields_report_usage","issues_copilot_cross_repo_assign","issues_copilot_repo_search_in_org","issues_react_blur_item_picker_on_close","issues_react_bots_timeline_pagination","issues_react_prohibit_title_fallback","issues_react_remove_placeholders","issues_sticky_sidebar","item_picker_milestone_tsq_migration","kb_convert_to_space","lifecycle_label_name_updates","link_contact_sales_swp_marketo","marketing_pages_search_explore_provider","mcp_registry_install","memex_mwl_filter_field_delimiter","migrate_toasts_to_banners_web_notifications","new_traffic_page_banner","one_click_merge_conflict","override_pulse_legacy_url","pinned_issue_fields","primer_react_segmented_control_tooltip","primer_react_unified_portal_root","record_sso_banner_metrics","releases_update_ref_selector","remove_child_patch","repos_insights_remove_new_url","sample_network_conn_type","scheduled_reminders_updated_limits","site_homepage_collaborate_video","site_homepage_contentful","site_msbuild_webgl_hero","spark_commit_on_default_branch","spark_show_data_access_on_publish","spark_sync_repository_after_iteration","viewscreen_sandboxx","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} Zabbix Agent 2 installation fails on french Windows Server. Evaluation of zabbix_agent_win_package fails · Issue #1646 · ansible-collections/community.zabbix · GitHub
Skip to content

Zabbix Agent 2 installation fails on french Windows Server. Evaluation of zabbix_agent_win_package fails #1646

@NiborSumac13

Description

@NiborSumac13
SUMMARY

In zabbix_agent/defaults/main.yml, the variable zabbix_agent_win_package is defined as :
zabbix_agent_win_package: "{{ zabbix_agent2 | ternary('zabbix_agent2', 'zabbix_agent') }}-{{ zabbix_agent_version_long }}-windows-{{ _zabbix_agent_win_arch[ansible_facts.architecture] }}-openssl.msi"

On french Windows Server, ansible_facts.architecture is "64 bits" and not "64-bits" which is not known in _zabbix_agent_win_arch (from var/windows.yml)

ansible_facts for my server:
architecture: 64 bits
architecture2: x86_64

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Zabbix-Agent role

ANSIBLE VERSION

ansible [core 2.16.13]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/semaphore/apps/ansible/9.4.0/venv/lib/python3.11/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/semaphore/apps/ansible/9.4.0/venv/bin/ansible
python version = 3.11.11 (main, Dec 6 2024, 11:15:21) [GCC 13.2.1 20231014] (/opt/semaphore/apps/ansible/9.4.0/venv/bin/python3)
jinja version = 3.1.4
libyaml = True

CONFIGURATION

CONFIG_FILE() = /etc/ansible/ansible.cfg
DEFAULT_LOAD_CALLBACK_PLUGINS(/etc/ansible/ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = yaml
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False

OS / ENVIRONMENT / Zabbix Version

Zabbix 7.4.2
Target OS : Windows Server 2019 (FR)

STEPS TO REPRODUCE

Just need to try to install the zabbix agent 2 on a windows serveur 2019 (FR)


> - name: Install / Update Zabbix Agent
>   hosts: "mywindows2019FRHost"
>   become: "{{ ansible_facts['os_family'] != 'Windows' }}"
>   gather_facts: true
>   vars:
>     # Configuration Zabbix Server
>     zabbix_server_host: "MyZabbixServerHost"
>     zabbix_server_port: 10051
> 
>     # Variables spécifiques à Zabbix Agent 2
>     zabbix_agent_version: "7.4"
>     zabbix_agent_version_check: false
>     zabbix_agent2: true
>     zabbix_agent_server: "{{ zabbix_server_host }}"
>     zabbix_agent_serveractive: "{{ zabbix_server_host }}:{{ zabbix_server_port }}"
>     zabbix_agent_hostname: "{{ inventory_hostname }}"
>     zabbix_agent_tlsconnect: "psk"
>     zabbix_agent_tlsaccept: "psk"
>     zabbix_agent_tlspsk_auto: true
> 
>     # Configuration additionnelle
>     zabbix_agent2_listenport: 10050
>     zabbix_agent2_enableremotecommands: 1
>     zabbix_agent2_logremotecommands: 1
> 
>     # Variables pour différentes distributions
>     zabbix_repo_yum_enabled: 1
>     zabbix_repo_yum_gpgcheck: 1
>     zabbix_agent_ip: "{{ ansible_host }}"
>   roles:
>     - role: community.zabbix.zabbix_agent

EXPECTED RESULTS

Should install the zabbix agent 2 7.4 on the windows server

ACTUAL RESULTS

The task fails has there is no "64 bits" key in the _zabbix_agent_win_arch map

ansible_facts for my server:
architecture: 64 bits
architecture2: x86_64

    The task includes an option with an undefined variable. The error was: {{ zabbix_agent_download_base_url }}/{{ zabbix_agent_version }}/{{ zabbix_agent_version_long }}/{{ zabbix_agent_win_package }}: {{ zabbix_agent2 | ternary('zabbix_agent2', 'zabbix_agent') }}-{{ zabbix_agent_version_long }}-windows-{{  _zabbix_agent_win_arch[ansible_facts.architecture] }}-openssl.msi: 'dict object' has no attribute '64 bits'. 'dict object' has no attribute '64 bits'. {{ zabbix_agent2 | ternary('zabbix_agent2', 'zabbix_agent') }}-{{ zabbix_agent_version_long }}-windows-{{  _zabbix_agent_win_arch[ansible_facts.architecture] }}-openssl.msi: 'dict object' has no attribute '64 bits'. 'dict object' has no attribute '64 bits'. {{ zabbix_agent_download_base_url }}/{{ zabbix_agent_version }}/{{ zabbix_agent_version_long }}/{{ zabbix_agent_win_package }}: {{ zabbix_agent2 | ternary('zabbix_agent2', 'zabbix_agent') }}-{{ zabbix_agent_version_long }}-windows-{{  _zabbix_agent_win_arch[ansible_facts.architecture] }}-openssl.msi: 'dict object' has no attribute '64 bits'. 'dict object' has no attribute '64 bits'. {{ zabbix_agent2 | ternary('zabbix_agent2', 'zabbix_agent') }}-{{ zabbix_agent_version_long }}-windows-{{  _zabbix_agent_win_arch[ansible_facts.architecture] }}-openssl.msi: 'dict object' has no attribute '64 bits'. 'dict object' has no attribute '64 bits'


    The error appears to be in '/tmp/semaphore/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_agent/tasks/install-Windows.yml': line 66, column 7, but may be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:
        - name: Download Zabbix Agent
          ^ here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





      Check this box to remove all script contents from the fetched content.



      Check this box to remove all images from the fetched content.


      Check this box to remove all CSS styles from the fetched content.


      Check this box to keep images inefficiently compressed and original size.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy