darkwizard242.inspec
Ansible Role: Inspec
This role is used to install inspec on Debian, Ubuntu, and EL systems. By default, it installs the extended version.
Requirements
No special requirements.
Role Variables
Here are the variables you can use (found in defaults/main.yml
):
Variables list:
inspec_app: inspec
inspec_version: 6.8.1
inspec_debian_os: "{{ ansible_distribution|lower }}"
inspec_debian_os_version: "{{ ansible_distribution_major_version }}"
inspec_debian_os_arch: amd64
inspec_debian_dl_url: "https://packages.chef.io/files/stable/{{ inspec_app }}/{{ inspec_version }}/{{ inspec_debian_os }}/{{ inspec_debian_os_version }}/{{ inspec_app }}_{{ inspec_version }}-1_{{ inspec_debian_os_arch }}.deb"
inspec_ubuntu_os: "{{ ansible_distribution|lower }}"
inspec_ubuntu_os_version: "{{ ansible_distribution_version}}"
inspec_ubuntu_os_arch: amd64
inspec_ubuntu_dl_url: "https://packages.chef.io/files/stable/{{ inspec_app }}/{{ inspec_version }}/{{ inspec_debian_os }}/{{ inspec_debian_os_version }}/{{ inspec_app }}_{{ inspec_version }}-1_{{ inspec_debian_os_arch }}.deb"
inspec_el_os: el
inspec_el_os_arch: x86_64
inspec_el_os_version: "{{ ansible_distribution_major_version }}"
inspec_el_dl_url: "https://packages.chef.io/files/stable/{{ inspec_app }}/{{ inspec_version }}/{{ inspec_el_os }}/{{ inspec_el_os_version }}/{{ inspec_app }}-{{ inspec_version }}-1.el{{ inspec_el_os_version }}.{{ inspec_el_os_arch }}.rpm"
inspec_el_disable_gpg_check: no
inspec_el_rpm_key_url: "https://packages.chef.io/chef.asc"
inspec_el_rpm_key_fingerprint: "1168 5DB9 2F03 640A 2FFE 7CA8 2940 ABA9 83EF 826A"
inspec_el_rpm_key_state: present
Variables table:
Variable | Description |
---|---|
inspec_app | The name of the application to install, which is inspec. |
inspec_version | The version of inspec to install, default is 6.8.1. |
inspec_debian_os | The name of the Debian OS in lowercase. |
inspec_debian_os_version | The version of the Debian OS. |
inspec_debian_os_arch | The architecture of the OS, default is amd64. |
inspec_debian_dl_url | The URL to download the Debian package for inspec. |
inspec_ubuntu_os | The name of the Ubuntu OS in lowercase. |
inspec_ubuntu_os_version | The version of the Ubuntu OS. |
inspec_ubuntu_os_arch | The architecture of the OS, default is amd64. |
inspec_ubuntu_dl_url | The URL to download the Ubuntu package for inspec. |
inspec_el_os | The name for EL based systems. |
inspec_el_os_version | The major version of the OS on EL based systems. |
inspec_el_os_arch | The architecture of the OS, default is x86_64. |
inspec_el_dl_url | The URL to download the RPM package for inspec on EL systems. |
inspec_el_disable_gpg_check | If set to 'yes', this will disable GPG signature checking on EL systems. Defaults to 'no'. |
inspec_el_rpm_key_url | The GPG key to be used for inspec on EL based systems. |
inspec_el_rpm_key_fingerprint | The fingerprint of the GPG key used on EL systems. |
inspec_el_rpm_key_state | If the GPG key should be imported into the RPM database on EL systems. |
Dependencies
None.
Example Playbook
Here's how to use this role in an Ansible playbook to install inspec:
Default installation:
- hosts: servers
roles:
- darkwizard242.inspec
Custom installation with a specific inspec version:
- hosts: servers
roles:
- darkwizard242.inspec
vars:
inspec_version: 4.18.99
License
This project is licensed under the MIT license.
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installs/Uninstalls 'inspec'- an auditing and testing framework.
Installa
ansible-galaxy install darkwizard242.inspec
Licenza
mit
Download
5.4k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!