Skip to content

Commit

Permalink
ci: move falconpy install to common, make CS env vars required
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Dec 12, 2023
1 parent ad1cfba commit 82a577f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions test/automated/ansible/install-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@
include_role:
name: install-gpg

- hosts: testing_hosts
become: true
gather_facts: no
# Crowdstrike reqs
- name: install cloudstrike-falconpy
ansible.builtin.pip:
name: crowdstrike-falconpy

- hosts: testing_hosts_linux
become: true
gather_facts: yes
vars:
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') }}"
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') | mandatory }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') | mandatory }}"
roles:
- role: crowdstrike.falcon.falcon_install
- role: crowdstrike.falcon.falcon_configure
Expand All @@ -57,8 +65,8 @@
become: false
gather_facts: yes
vars:
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') }}"
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') | mandatory }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') | mandatory }}"
roles:
- role: crowdstrike.falcon.falcon_install
- role: crowdstrike.falcon.falcon_configure
Expand All @@ -78,8 +86,8 @@
- hosts: testing_hosts_windows
gather_facts: yes
vars:
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') }}"
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') | mandatory }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') | mandatory }}"
roles:
- role: crowdstrike.falcon.falcon_install
- role: crowdstrike.falcon.falcon_configure
Expand Down

0 comments on commit 82a577f

Please sign in to comment.