The client_preflight
role checks client readiness for Safeguard Authentication Services client software installation and Active Directory joining. Report generation can be enabled to provide CSV and HTML reports of the results.
The role requires the Safeguard Authentication Services client software install packages be available on Ansible control node. See variables section for more detail.
All of the variables shown below have a default value but can be overridden to suit your environment. Variable overriding can be done in playbooks, inventories, from the command line using the -e
switch with the ansible-playbook
command, or from Ansible Tower and AWX. See Ansbile documentation for further information.
See client software directories variables in thecommon
role.
See Active Directory variables in the common
role.
-
client_preflight_timeout
sets timeout for port checks in seconds.Default value is:
client_preflight_checks: 5
-
client_preflight_timesync
enables time synchronization of client if needed.Default value is:
client_preflight_timesync: false
-
client_preflight_extra_args
allows passing additional arguments to the preflight binary.Default value is:
client_preflight_extra_args: ''
Facts generation variable defaults for all roles are set by variables in the common
role and can be overriden for all roles by setting the appropriate common
role variable. See common role facts generation variables in the common
role.
-
client_preflight_facts_generate
enables facts generation. Implicitely enabled ifclient_preflight_reports_generate
is set.Default value is:
client_preflight_facts_generate: "{{ facts_generate }}"
-
client_preflight_facts_verbose
enables verbose facts generation.Default value is:
client_preflight_facts_verbose: "{{ facts_verbose }}"
Report generation variable defaults for all roles are set by variables in the common
role and can be overriden for all roles by setting the appropriate common
role variable. See common role report generation variables in the common
role.
-
client_preflight_reports_generate
enables report generation. Reports are generated at the end of aclient_preflight
run for all hosts.Default value is:
client_preflight_reports_generate: "{{ reports_generate }}"
Disabling report generation if not needed will increase the speed of the
client_preflight
role. -
client_preflight_reports_backup
enables backup of prior reports by renaming them with the date and time they were generated so that the latest reports do not override the previous reports.Default value is:
client_preflight_reports_backup: "{{ reports_backup }}"
-
client_preflight_reports_details_format
sets the format of the details section in both the HTML and CSV reports. Valid options:yaml
details will be in YAML formatjson
details will be in JSON format
Default value is:
client_preflight_reports_details_format: "{{ reports_details_format }}"
-
client_preflight_reports_host
sets the host on which the reports should be generated.Default value is:
client_preflight_reports_host: "{{ reports_host }}"
-
client_preflight_reports
is a list of dictionaries that define the reports to be generated. The default value creates a CSV and HTML report using the templates included with theclient_preflight
role.Default value is:
client_preflight_reports: - src: client_preflight_report.csv.j2 dest: client_preflight_report.csv - src: client_preflight_report.html.j2 dest: client_preflight_report.html
The
src
key for each list entry is the report template file on the Ansible control node. With a relative path Ansible will look in theclient_preflight
roletemplate
directory. Use a absolute path to speciy templates located elsewhere on the Ansible control node.The
dest
key for each list entry is the report file on the machine specified inclient_preflight_reports_host
. Ifclient_preflight_reports_host
is set to the Ansible control node a relative path can be used and it will be relative to the directory from which the playbook is run. For other hosts, an absolute path must be used. In either case the containing directory must exist.
The client_preflight
role contains a plugin to support operation of the role:
preflight
module performs preflight tasks on host by wrapping the Safeguard Authentication Services preflight binary.
Below is a sample playbook using the client_preflight
role.
---
- hosts: all
gather_facts: false
# The variables you would most likely want/need to override have been included
vars:
# Active Directory
client_domain: sample.net
client_username: user
client_password: pass
# Directories
client_sw_dir: "./files/QAS-4.2.3.25456/client"
client_sw_tmp_dir: /tmp/1id
# Facts
client_preflight_facts_generate: true
client_preflight_facts_verbose: false
# Reports
client_preflight_reports_generate: true
client_preflight_reports_backup: false
roles:
- name: oneidentity.authentication_services.client_preflight
For a copy of this and other sample playbooks see examples