Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
/ ansible-lynis Public archive

Install and configure Lynis in Debian-like systems

License

Notifications You must be signed in to change notification settings

maxlareo/ansible-lynis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lynis

Build Status Ansible Galaxy

Install and configure Lynis in Debian-like systems

Role Variables

About the /etc/lynis/custom.prf file

  • lynis_colors: [default: 'yes']: Use colored output
  • lynis_compressed_uploads: [default: 'yes']: Compressed uploads (set to zero when errors with uploading occur)
  • lynis_error_on_warnings: [default: 'no']: Show non-zero exit code when warnings are found
  • lynis_language: [default: '']: Use Lynis in your own language (by default auto-detected)
  • lynis_license_key: [default: '']: Lynis Enterprise license key
  • lynis_machine_role: [default: server]: Defines the role of the system (personal, workstation or server)
  • lynis_profile_name: [default: Default Audit Template]: Profile name, will be used as title/description
  • lynis_pause_between_tests: [default: 0]: Number of seconds to pause between every test (0 is no pause)
  • lynis_quick: [default: 'no']: Enable quick mode (no waiting for keypresses, same as --quick option)
  • lynis_refresh_repositories: [default: 'yes']: Refresh software repositories to help detecting vulnerable packages
  • lynis_show_report_solution: [default: 'yes']: Show solution for findings
  • lynis_show_tool_tips: [default: 'yes']: Show inline tips about the tool
  • lynis_skip_plugins: [default: 'no']: Skip plugins
  • lynis_skip_tests: [default: []]: Skip a test (one per line) or skip a particular option within a test (when applicable)
  • lynis_test_scan_mode: [default: full]: Scan type - how deep the audit should be (light, normal or full)
  • lynis_upload: [default: 'no']: Upload data to central server
  • lynis_upload_server: [default: '']: The hostname/IP address to receive the data
  • lynis_upload_options: [default: '']: Provide options to cURL (or other upload tool) when uploading data. Upload-options=--insecure --> use HTTPS, but skip certificate check (e.g. self-signed)
  • lynis_verbose: [default: 'no']: Verbose output
  • lynis_plugins: [default: []]: Lynis Plugins

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - lynis

License

MIT