Skip to content

Commit

Permalink
ci: use vars directly instead of thru env
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Dec 12, 2023
1 parent 612ff23 commit cef56a7
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions test/automated/ansible/install-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

- hosts: testing_hosts
become: true
gather_facts: no
gather_facts: yes
tasks:
# Crowdstrike reqs
- name: install cloudstrike-falconpy (non-windows)
Expand All @@ -45,16 +45,19 @@
become_method: runas
when: ansible_facts['os_family'] == "Windows"

- hosts: testing_hosts_linux
become: true
- hosts: testing_hosts
become: false
gather_facts: yes
vars:
falcon_client_id: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_id') | mandatory }}"
falcon_client_secret: "{{ lookup('ansible.builtin.env', 'crowdstrike_client_secret') | mandatory }}"
falcon_client_id: "{{ crowdstrike_client_id }}"
falcon_client_secret: "{{ crowdstrike_client_secret }}"
roles:
- role: crowdstrike.falcon.falcon_install
- role: crowdstrike.falcon.falcon_configure

- hosts: testing_hosts_linux
become: true
gather_facts: yes
tasks:
- name: Configure logrotate
include_role:
Expand All @@ -67,13 +70,6 @@
- hosts: testing_hosts_macos
become: false
gather_facts: yes
vars:
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

tasks:
- name: install brew
include_role:
Expand All @@ -88,13 +84,6 @@

- hosts: testing_hosts_windows
gather_facts: yes
vars:
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

tasks:
- name: Configure hostname
include_role:
Expand Down

0 comments on commit cef56a7

Please sign in to comment.