5ddbde3310
* adds kolide fleet * integrates osquery to kolide fleet server Change-Id: I646364c44bb99d4397bb35068600c49b7bfd62c2
43 lines
1002 B
YAML
43 lines
1002 B
YAML
---
|
|
- name: Install Kolide Fleet
|
|
hosts: "fleet"
|
|
become: true
|
|
|
|
vars_files:
|
|
- vars/variables.yml
|
|
|
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
|
|
|
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
|
|
|
tasks:
|
|
# install SSL certs
|
|
- include_tasks: fleetSSL.yml
|
|
|
|
# install software requirements
|
|
- include_tasks: fleetRequirements.yml
|
|
|
|
# install kolide fleet server
|
|
- include_tasks: fleetServerInstall.yml
|
|
|
|
# drop the configuration
|
|
- include_tasks: fleetConfig.yml
|
|
|
|
# add files for systemd
|
|
- include_tasks: fleetService.yml
|
|
when:
|
|
- ansible_service_mgr == "systemd"
|
|
|
|
# migrate the database
|
|
- include_tasks: fleetMigrateDB.yml
|
|
run_once: true
|
|
|
|
# start fleet via systemd
|
|
- include_tasks: fleetStartService.yml
|
|
|
|
# configure kolide fleet & set admin account
|
|
- include_tasks: fleetRegisterAdmin.yml
|
|
|
|
# retrieve and set enrollment token
|
|
- include_tasks: fleetGetEnrollmentToken.yml
|