CrowdStrike / falcon-scripts

Scripts to streamline the deployment and use of the CrowdStrike Falcon sensor
The Unlicense
142 stars 83 forks source link

Getting error when trying to call latest falcon-linux-install.sh file through ansible code #353

Open koushik527 opened 1 month ago

koushik527 commented 1 month ago

I am getting error when trying to call the falcon-linux-install.sh file through ansible code below

Getting error as below

Fatal error - Unable to obtain Crowdstrike Falcon OAuth Token .Double check your credentials and/or ensure you set the correct cloud region.

I am not sure what I am missing..could anyone guide me on this

carlosmmatos commented 1 month ago

@koushik527 thanks for opening up an issue. Question for you, why aren't you just using our Ansible collection to do this instead of trying to wrap Ansible around this bash script?

Here's an example of how you can use our Ansible collection to install/configure the sensor for you using pure Ansible:

- hosts: all
  vars:
    falcon_client_id: <FALCON_CLIENT_ID>
    falcon_client_secret: <FALCON_CLIENT_SECRET>
  roles:
  - role: crowdstrike.falcon.falcon_install
  - role: crowdstrike.falcon.falcon_configure

Take a look at the README's for different options you can do within our roles.

koushik527 commented 1 month ago

Thanks @carlosmmatos for your response... As the code used is maintained am trying to use the same. This was working till last month .. Since I see falcon-linux-install file updated 3 weeks back . I was updating with the latest and am trying getting the error mentioned

carlosmmatos commented 1 month ago

Since we don't support running the bash script in Ansible in this repository, the only thing you can do is tell us if you are experiencing an issue with running the script itself without Ansible.

Otherwise, as stated, if you would like an Ansible native way to deploy Falcon to your fleet, please consider using our Red Hat certified Ansible collection, which is fully supported and maintained.