CrowdStrike / ansible_collection_falcon

Comprehensive toolkit for streamlining your interactions with the CrowdStrike Falcon platform.
https://galaxy.ansible.com/ui/repo/published/crowdstrike/falcon/
GNU General Public License v3.0
97 stars 60 forks source link

3.2.3 Playbook doesn't detect a version to install #341

Closed jurschel closed 1 year ago

jurschel commented 1 year ago

I'm trying to use the role to install falcon using the 3.2.3 version of the role. When it attempts to detect the version to install it returns nothing and thus the next task fails to install. I've even done this manually with a bearer token etc and still it returns nothing. Below is the machine information and below that is the playbook and below that is the AWX output from that job and finally are all the facts that the gather_facts job got from the machine.

PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

PLAYBOOK

JOB RESULTS { "content": "{\n \"meta\": {\n \"query_time\": 0.071824883,\n \"powered_by\": \"binserv\",\n \"trace_id\": \"d79ac1cd-acf8-4b9a-a2e3-f30f9b13dcb9\"\n },\n \"errors\": [],\n \"resources\": []\n}", "redirected": false, "url": "https://api.us-2.crowdstrike.com/sensors/combined/installers/v1?filter=os%3A%22Ubuntu%22%2Bos_version%3A%2216/18/20%22", "status": 200, "server": "nginx", "date": "Mon, 24 Apr 2023 22:09:40 GMT", "content_type": "application/json", "content_length": "159", "connection": "close", "strict_transport_security": "max-age=15724800; includeSubDomains, max-age=31536000; includeSubDomains", "x_cs_region": "us-2", "x_cs_traceid": "d79ac1cd-acf8-4b9a-a2e3-f30f9b13dcb9", "x_ratelimit_limit": "6000", "x_ratelimit_remaining": "5999", "cookies_string": "", "cookies": {}, "msg": "OK (159 bytes)", "elapsed": 0, "changed": false, "json": { "meta": { "query_time": 0.071824883, "powered_by": "binserv", "trace_id": "d79ac1cd-acf8-4b9a-a2e3-f30f9b13dcb9" }, "errors": [], "resources": [] }, "invocation": { "module_args": { "url": "https://api.us-2.crowdstrike.com/sensors/combined/installers/v1?filter=os%3A%22Ubuntu%22%2Bos_version%3A%2216/18/20%22", "method": "GET", "return_content": true, "headers": { "authorization": "Bearer xxxx", "Content-Type": "application/json" }, "force": false, "http_agent": "ansible-httpget", "use_proxy": true, "validate_certs": true, "force_basic_auth": false, "use_gssapi": false, "body_format": "raw", "follow_redirects": "safe", "status_code": [ 200 ], "timeout": 30, "remote_src": false, "unredirected_headers": [], "decompress": true, "use_netrc": true, "unsafe_writes": false, "url_username": null, "url_password": null, "client_cert": null, "client_key": null, "dest": null, "body": null, "src": null, "creates": null, "removes": null, "unix_socket": null, "ca_path": null, "ciphers": null, "mode": null, "owner": null, "group": null, "seuser": null, "serole": null, "selevel": null, "setype": null, "attributes": null } }, "_ansible_no_log": null }

FACTS

{ "ansible_facts": { "ansible_python": { "version": { "major": 3, "minor": 10, "micro": 6, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 10, 6, "final", 0 ], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython" }, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "jammy", "ansible_distribution_version": "22.04", "ansible_distribution_major_version": "22", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "ansible_loadavg": { "1m": 0.080078125, "5m": 0.0166015625, "15m": 0.00537109375 }, "ansible_fips": false, "ansible_dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true }, "search": [ "xxx.xxx" ] }, "ansible_apparmor": { "status": "enabled" }, "ansible_virtualization_role": "guest", "ansible_virtualization_type": "VirtualPC", "ansible_virtualization_tech_guest": [ "VirtualPC" ], "ansible_virtualization_tech_host": [], "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_system": "Linux", "ansible_kernel": "5.15.0-67-generic", "ansible_kernel_version": "#74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023", "ansible_machine": "x86_64", "ansible_python_version": "3.10.6", "ansible_fqdn": "ubuntu-awx-crowdstrike-7.xxx.xxx", "ansible_hostname": "ubuntu-awx-crowdstrike-7", "ansible_nodename": "ubuntu-awx-crowdstrike-7", "ansible_domain": "xxx.xxx", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "1d4d10bad2f84bc89b392323791774a2", "ansible_cmdline": { "BOOT_IMAGE": "/vmlinuz-5.15.0-67-generic", "root": "/dev/mapper/ubuntu--vg-lv--1", "ro": true }, "ansible_proc_cmdline": { "BOOT_IMAGE": "/vmlinuz-5.15.0-67-generic", "root": "/dev/mapper/ubuntu--vg-lv--1", "ro": true }, "ansible_selinux_python_present": true, "ansible_selinux": { "status": "disabled" }, "ansible_ssh_host_key_dsa_public": "xxxxx", "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_ssh_host_key_rsa_public": "xxxxx", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "xxxxx", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "xxxxx", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_hostnqn": "", "ansible_lsb": { "id": "Ubuntu", "description": "Ubuntu 22.04.2 LTS", "release": "22.04", "codename": "jammy", "major_release": "22" }, "ansible_fibre_channel_wwn": [], "ansible_is_chroot": false, "ansible_local": {}, "ansible_iscsi_iqn": "iqn.2004-10.com.ubuntu:01:4f598a60af82", "ansible_date_time": { "year": "2023", "month": "04", "weekday": "Monday", "weekday_number": "1", "weeknumber": "17", "day": "24", "hour": "17", "minute": "09", "second": "35", "epoch": "1682374175", "epoch_int": "1682374175", "date": "2023-04-24", "time": "17:09:35", "iso8601_micro": "2023-04-24T22:09:35.890280Z", "iso8601": "2023-04-24T22:09:35Z", "iso8601_basic": "20230424T170935890280", "iso8601_basic_short": "20230424T170935", "tz": "CDT", "tz_dst": "CDT", "tz_offset": "-0500" }, "ansible_pkg_mgr": "apt", "ansible_processor": [ "0", "AuthenticAMD", "xxxxx", "1", "AuthenticAMD", "xxxxx" ], "ansible_processor_count": 1, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 2, "ansible_processor_vcpus": 2, "ansible_processor_nproc": 2, "ansible_memtotal_mb": 7884, "ansible_memfree_mb": 3037, "ansible_swaptotal_mb": 4095, "ansible_swapfree_mb": 4095, "ansible_memory_mb": { "real": { "total": 7884, "used": 4847, "free": 3037 }, "nocache": { "free": 7045, "used": 839 }, "swap": { "total": 4095, "free": 4095, "used": 0, "cached": 0 } }, "ansible_bios_date": "12/17/2019", "ansible_bios_vendor": "Microsoft Corporation", "ansible_bios_version": "Hyper-V UEFI Release v4.0", "ansible_board_asset_tag": "None", "ansible_board_name": "Virtual Machine", "ansible_board_serial": "0338-6828-3565-8556-3590-1989-84", "ansible_board_vendor": "Microsoft Corporation", "ansible_board_version": "Hyper-V UEFI Release v4.0", "ansible_chassis_asset_tag": "0338-6828-3565-8556-3590-1989-84", "ansible_chassis_serial": "0338-6828-3565-8556-3590-1989-84", "ansible_chassis_vendor": "Microsoft Corporation", "ansible_chassis_version": "Hyper-V UEFI Release v4.0", "ansible_form_factor": "Desktop", "ansible_product_name": "Virtual Machine", "ansible_product_serial": "0338-6828-3565-8556-3590-1989-84", "ansible_product_uuid": "0d2a9c47-3c12-4289-b827-a5343a04ef9d", "ansible_product_version": "Hyper-V UEFI Release v4.0", "ansible_system_vendor": "Microsoft Corporation", "ansible_devices": { "loop1": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "129672", "sectorsize": "512", "size": "63.32 MB", "host": "", "holders": [] }, "dm-1": { "virtual": 1, "links": { "ids": [ "dm-name-ubuntu--vg-lv--1", "dm-uuid-LVM-rKSViZkh8vGlKCYNRSJsSvmkXuQqbho4uVgBSsQGybCr2qH0Fpg66cbDgDVhhJtg" ], "uuids": [ "45a8ef7a-598e-4d8b-af2d-d212a6e40b94" ], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "2097152", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "251543552", "sectorsize": "512", "size": "119.95 GB", "host": "", "holders": [] }, "sdb": { "virtual": 1, "links": { "ids": [ "scsi-14d534654202020208fcdd1417fd53d459fa4f3466266b3b1", "scsi-3600224808fcdd1417fd5f3466266b3b1", "wwn-0x600224808fcdd1417fd5f3466266b3b1" ], "uuids": [], "labels": [], "masters": [] }, "vendor": "Msft", "model": "Virtual Disk", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "33554432", "wwn": "0x600224808fcdd1417fd5f3466266b3b1", "partitions": { "sdb1": { "links": { "ids": [ "lvm-pv-uuid-grKKqn-fOcX-e8np-4GQe-3eKF-NlAE-plDOP9", "scsi-14d534654202020208fcdd1417fd53d459fa4f3466266b3b1-part1", "scsi-3600224808fcdd1417fd5f3466266b3b1-part1", "wwn-0x600224808fcdd1417fd5f3466266b3b1-part1" ], "uuids": [], "labels": [], "masters": [ "dm-2" ] }, "start": "2048", "sectors": "211808256", "sectorsize": 512, "size": "101.00 GB", "uuid": null, "holders": [ "datadisk-datadisk1" ] } }, "rotational": "1", "scheduler_mode": "none", "sectors": "211812352", "sectorsize": "512", "size": "101.00 GB", "host": "", "holders": [] }, "loop6": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": [] }, "loop4": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "109032", "sectorsize": "512", "size": "53.24 MB", "host": "", "holders": [] }, "loop2": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "229272", "sectorsize": "512", "size": "111.95 MB", "host": "", "holders": [] }, "dm-2": { "virtual": 1, "links": { "ids": [ "dm-name-datadisk-datadisk1", "dm-uuid-LVM-PGt64ueG2c9qSZfzAhLY2v4Y2qOLpJhYd2XC2E0J1vSigfn4i6STZQJrTgqtoyUe" ], "uuids": [ "eb40dc3d-fbbb-4c65-9e14-9fbf5543d87b" ], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "33554432", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "209715200", "sectorsize": "512", "size": "100.00 GB", "host": "", "holders": [] }, "loop0": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "129608", "sectorsize": "512", "size": "63.29 MB", "host": "", "holders": [] }, "dm-0": { "virtual": 1, "links": { "ids": [ "dm-name-ubuntu--vg-lv--0", "dm-uuid-LVM-rKSViZkh8vGlKCYNRSJsSvmkXuQqbho4ERcjUKVZd2cD0w4tx95KirfD9kGD72pG" ], "uuids": [ "601fb297-387b-4474-8fce-c65248969d80" ], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "2097152", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "host": "", "holders": [] }, "loop7": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": [] }, "sda": { "virtual": 1, "links": { "ids": [ "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d", "scsi-360022480e06db5d4fea97562b3aa9b7d", "wwn-0x60022480e06db5d4fea97562b3aa9b7d" ], "uuids": [], "labels": [], "masters": [] }, "vendor": "Msft", "model": "Virtual Disk", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "2097152", "wwn": "0x60022480e06db5d4fea97562b3aa9b7d", "partitions": { "sda2": { "links": { "ids": [ "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d-part2", "scsi-360022480e06db5d4fea97562b3aa9b7d-part2", "wwn-0x60022480e06db5d4fea97562b3aa9b7d-part2" ], "uuids": [ "65190bfc-a39b-430c-be32-2a36580989b3" ], "labels": [], "masters": [] }, "start": "2203648", "sectors": "4194304", "sectorsize": 512, "size": "2.00 GB", "uuid": "65190bfc-a39b-430c-be32-2a36580989b3", "holders": [] }, "sda3": { "links": { "ids": [ "lvm-pv-uuid-5S9f0h-vp5w-SopI-oTvR-IECm-MPs7-YevxrV", "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d-part3", "scsi-360022480e06db5d4fea97562b3aa9b7d-part3", "wwn-0x60022480e06db5d4fea97562b3aa9b7d-part3" ], "uuids": [], "labels": [], "masters": [ "dm-0", "dm-1" ] }, "start": "6397952", "sectors": "259938304", "sectorsize": 512, "size": "123.95 GB", "uuid": null, "holders": [ "ubuntu--vg-lv--1", "ubuntu--vg-lv--0" ] }, "sda1": { "links": { "ids": [ "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d-part1", "scsi-360022480e06db5d4fea97562b3aa9b7d-part1", "wwn-0x60022480e06db5d4fea97562b3aa9b7d-part1" ], "uuids": [ "CCE1-0DEC" ], "labels": [], "masters": [] }, "start": "2048", "sectors": "2201600", "sectorsize": 512, "size": "1.05 GB", "uuid": "CCE1-0DEC", "holders": [] } }, "rotational": "1", "scheduler_mode": "none", "sectors": "266338304", "sectorsize": "512", "size": "127.00 GB", "host": "", "holders": [] }, "loop5": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": [] }, "loop3": { "virtual": 1, "links": { "ids": [], "uuids": [], "labels": [], "masters": [] }, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "102072", "sectorsize": "512", "size": "49.84 MB", "host": "", "holders": [] } }, "ansible_device_links": { "ids": { "dm-2": [ "dm-name-datadisk-datadisk1", "dm-uuid-LVM-PGt64ueG2c9qSZfzAhLY2v4Y2qOLpJhYd2XC2E0J1vSigfn4i6STZQJrTgqtoyUe" ], "sdb1": [ "lvm-pv-uuid-grKKqn-fOcX-e8np-4GQe-3eKF-NlAE-plDOP9", "scsi-14d534654202020208fcdd1417fd53d459fa4f3466266b3b1-part1", "scsi-3600224808fcdd1417fd5f3466266b3b1-part1", "wwn-0x600224808fcdd1417fd5f3466266b3b1-part1" ], "sdb": [ "scsi-14d534654202020208fcdd1417fd53d459fa4f3466266b3b1", "scsi-3600224808fcdd1417fd5f3466266b3b1", "wwn-0x600224808fcdd1417fd5f3466266b3b1" ], "sda1": [ "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d-part1", "scsi-360022480e06db5d4fea97562b3aa9b7d-part1", "wwn-0x60022480e06db5d4fea97562b3aa9b7d-part1" ], "sda2": [ "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d-part2", "scsi-360022480e06db5d4fea97562b3aa9b7d-part2", "wwn-0x60022480e06db5d4fea97562b3aa9b7d-part2" ], "sda3": [ "lvm-pv-uuid-5S9f0h-vp5w-SopI-oTvR-IECm-MPs7-YevxrV", "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d-part3", "scsi-360022480e06db5d4fea97562b3aa9b7d-part3", "wwn-0x60022480e06db5d4fea97562b3aa9b7d-part3" ], "dm-0": [ "dm-name-ubuntu--vg-lv--0", "dm-uuid-LVM-rKSViZkh8vGlKCYNRSJsSvmkXuQqbho4ERcjUKVZd2cD0w4tx95KirfD9kGD72pG" ], "dm-1": [ "dm-name-ubuntu--vg-lv--1", "dm-uuid-LVM-rKSViZkh8vGlKCYNRSJsSvmkXuQqbho4uVgBSsQGybCr2qH0Fpg66cbDgDVhhJtg" ], "sda": [ "scsi-14d53465420202020e06db5d4fea94643bb2a7562b3aa9b7d", "scsi-360022480e06db5d4fea97562b3aa9b7d", "wwn-0x60022480e06db5d4fea97562b3aa9b7d" ] }, "uuids": { "dm-2": [ "eb40dc3d-fbbb-4c65-9e14-9fbf5543d87b" ], "sda1": [ "CCE1-0DEC" ], "sda2": [ "65190bfc-a39b-430c-be32-2a36580989b3" ], "dm-0": [ "601fb297-387b-4474-8fce-c65248969d80" ], "dm-1": [ "45a8ef7a-598e-4d8b-af2d-d212a6e40b94" ] }, "labels": {}, "masters": { "sda3": [ "dm-0", "dm-1" ], "sdb1": [ "dm-2" ] } }, "ansible_uptime_seconds": 4134, "ansible_lvm": { "lvs": { "datadisk1": { "size_g": "100.00", "vg": "datadisk" }, "lv-0": { "size_g": "4.00", "vg": "ubuntu-vg" }, "lv-1": { "size_g": "119.95", "vg": "ubuntu-vg" } }, "vgs": { "datadisk": { "size_g": "101.00", "free_g": "1.00", "num_lvs": "1", "num_pvs": "1" }, "ubuntu-vg": { "size_g": "123.95", "free_g": "0", "num_lvs": "2", "num_pvs": "1" } }, "pvs": { "/dev/sda3": { "size_g": "123.95", "free_g": "0", "vg": "ubuntu-vg" }, "/dev/sdb1": { "size_g": "101.00", "free_g": "1.00", "vg": "datadisk" } } }, "ansible_mounts": [ { "mount": "/", "device": "/dev/mapper/ubuntu--vg-lv--1", "fstype": "ext4", "options": "rw,relatime", "size_total": 126168399872, "size_available": 115447001088, "block_size": 4096, "block_total": 30802832, "block_available": 28185303, "block_used": 2617529, "inode_total": 7864320, "inode_available": 7746219, "inode_used": 118101, "uuid": "45a8ef7a-598e-4d8b-af2d-d212a6e40b94" }, { "mount": "/snap/core20/1828", "device": "/dev/loop0", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 66453504, "size_available": 0, "block_size": 131072, "block_total": 507, "block_available": 0, "block_used": 507, "inode_total": 11906, "inode_available": 0, "inode_used": 11906, "uuid": "N/A" }, { "mount": "/snap/core20/1852", "device": "/dev/loop1", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 66453504, "size_available": 0, "block_size": 131072, "block_total": 507, "block_available": 0, "block_used": 507, "inode_total": 11926, "inode_available": 0, "inode_used": 11926, "uuid": "N/A" }, { "mount": "/snap/snapd/18357", "device": "/dev/loop3", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 52297728, "size_available": 0, "block_size": 131072, "block_total": 399, "block_available": 0, "block_used": 399, "inode_total": 496, "inode_available": 0, "inode_used": 496, "uuid": "N/A" }, { "mount": "/snap/lxd/24322", "device": "/dev/loop2", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 117440512, "size_available": 0, "block_size": 131072, "block_total": 896, "block_available": 0, "block_used": 896, "inode_total": 873, "inode_available": 0, "inode_used": 873, "uuid": "N/A" }, { "mount": "/snap/snapd/18933", "device": "/dev/loop4", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 55836672, "size_available": 0, "block_size": 131072, "block_total": 426, "block_available": 0, "block_used": 426, "inode_total": 656, "inode_available": 0, "inode_used": 656, "uuid": "N/A" }, { "mount": "/boot", "device": "/dev/sda2", "fstype": "ext4", "options": "rw,relatime", "size_total": 2040373248, "size_available": 1650642944, "block_size": 4096, "block_total": 498138, "block_available": 402989, "block_used": 95149, "inode_total": 131072, "inode_available": 130762, "inode_used": 310, "uuid": "65190bfc-a39b-430c-be32-2a36580989b3" }, { "mount": "/boot/efi", "device": "/dev/sda1", "fstype": "vfat", "options": "rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro", "size_total": 1124995072, "size_available": 1118629888, "block_size": 4096, "block_total": 274657, "block_available": 273103, "block_used": 1554, "inode_total": 0, "inode_available": 0, "inode_used": 0, "uuid": "CCE1-0DEC" }, { "mount": "/opt", "device": "/dev/mapper/datadisk-datadisk1", "fstype": "ext4", "options": "rw,relatime", "size_total": 105089261568, "size_available": 98621448192, "block_size": 4096, "block_total": 25656558, "block_available": 24077502, "block_used": 1579056, "inode_total": 6553600, "inode_available": 6532973, "inode_used": 20627, "uuid": "eb40dc3d-fbbb-4c65-9e14-9fbf5543d87b" } ], "ansible_interfaces": [ "eth0", "lo" ], "ansible_eth0": { "device": "eth0", "macaddress": "00:15:5d:b0:26:56", "mtu": 1500, "active": true, "module": "hv_netvsc", "type": "ether", "pciid": "943d0bee-5149-4a05-bf0f-ed91ea546142", "speed": 50000, "promisc": false, "ipv4": { "address": "xxx.xxx.xxx.xxx", "broadcast": "xxx.xxx.xxx.xxx", "netmask": "xxx.xxx.xxx.xxx", "network": "xxx.xxx.xxx.xxx", "prefix": "23" }, "ipv6": [ { "address": "fe80::215:5dff:feb0:2656", "prefix": "64", "scope": "link" } ], "features": { "rx_checksumming": "on", "tx_checksumming": "on", "tx_checksum_ipv4": "on", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv6": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "on", "rx_vlan_offload": "on [fixed]", "tx_vlan_offload": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "on", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]", "rx_udp_gro_forwarding": "off", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_dup_offload": "off [fixed]" }, "timestamping": [], "hw_timestamp_filters": [] }, "ansible_lo": { "device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "prefix": "8" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "features": { "rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "on", "tx_gso_list": "on", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]", "rx_udp_gro_forwarding": "off", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_dup_offload": "off [fixed]" }, "timestamping": [], "hw_timestamp_filters": [] }, "ansible_default_ipv4": { "gateway": "xxx.xxx.xxx.xxx", "interface": "eth0", "address": "xxx.xxx.xxx.xxx", "broadcast": "xxx.xxx.xxx.xxx", "netmask": "xxx.xxx.xxx.xxx", "network": "xxx.xxx.xxx.xxx", "prefix": "23", "macaddress": "00:15:5d:b0:26:56", "mtu": 1500, "type": "ether", "alias": "eth0" }, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": [ "xxx.xxx.xxx.xxx" ], "ansible_all_ipv6_addresses": [ "fe80::215:5dff:feb0:2656" ], "ansible_service_mgr": "systemd", "gather_subset": [ "all" ], "module_setup": true }, "warnings": [], "deprecations": [], "_ansible_verbose_override": true, "_ansible_no_log": null, "changed": false }

carlosmmatos commented 1 year ago

@jurschel Thanks for opening up an issue. When you version 3.2.3, is that a typo? If not, is there a reason why you aren't using a later version? A lot of changes have occurred since then dealing with the API filters and changes. Based on your output for example - the following query wouldn't work in your situation:

"url": "https://api.us-2.crowdstrike.com/sensors/combined/installers/v1?filter=os%3A%22Ubuntu%22%2Bos_version%3A%2216/18/20%22",

This is because you are using ubuntu 22, so these conventions have changed with how we call the API to get back an appropriate filter based on what we pass for os_version.

You can run your playbook with -v to see some of these variables being set in the preinstall.yml file, rather than dumping your ansible facts here.

Try using the latest version: 3.2.33 to see if it works for you.

carlosmmatos commented 1 year ago

I’ll try to get you the curl command to run for your setup to test. If that works we can try to override the query variable to run in the playbook. Give me a few

carlosmmatos commented 1 year ago

Here's the curl command:

curl --location 'https://api.crowdstrike.com/sensors/combined/installers/v1?sort=version%7Cdesc&filter=os%253A%2522Ubuntu%2522%252Bos_version%253A%2522*22*%2522%252Bos_version%253A!~%2522arm64%2522%252Bos_version%253A!~%2522zLinux%2522&null=' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <BEARER TOKEN>'

If that works for you, you can try overriding the following variable in your playbook:

---
- hosts: all
  roles:
  - role: crowdstrike.falcon.falcon_install
    vars:
      falcon_client_id: <Falcon_UI_OAUTH_client_id>
      falcon_client_secret: <Falcon_UI_OAUTH_client_secret>
      falcon_os_query: "os:\"Ubuntu\"+os_version:\"*22*\"+os_version:!~\"arm64\"+os_version:!~\"zLinux\""
jurschel commented 1 year ago

So you were right I had a pretty old version in my project. I thought it would automatically pull the latest one when I set it in my requirements.yml but I suppose not. Anyway I updated to the 3.2.33 version and after updating my kernel it says it all passed and installed. I added the configure step to set the CID and it's all reporting in now as planned. Thanks for your help @carlosmmatos !