darkwizard242.serverspec

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: serverspec

This role installs serverspec on Debian/Ubuntu and EL systems. Serverspec is a tool for testing infrastructure.

Requirements

Serverspec is a gem, which means you need to have Ruby installed. This role will automatically install Ruby if it's not already available.

Role Variables

You can find the available variables listed below (in defaults/main.yml):

Variables list:

ruby_app_debian_package: ruby-full
ruby_app_el_package: ruby
ruby_desired_state: present
serverspec_app: serverspec
serverspec_desired_state: present
serverspec_user_install: no
serverspec_include_dependencies: yes

Variables table:

Variable Description
ruby_app_debian_package Specifies the app to install on Debian systems, e.g. ruby-full.
ruby_app_el_package Specifies the app to install on Enterprise Linux systems (like Redhat/CentOS), e.g. ruby.
ruby_desired_state Indicates whether to install (e.g. present or latest) or uninstall (e.g. absent) the package. Defaults to present.
serverspec_app Specifies the app to install on Debian systems, e.g. serverspec.
serverspec_desired_state Indicates whether to install (e.g. present or latest) or uninstall (e.g. absent) the gem. Defaults to present.
serverspec_user_install Indicates whether to install the serverspec gem into a user's local gems.
serverspec_include_dependencies Indicates whether to install the necessary dependencies of serverspec or not.

Dependencies

None

Example Playbook

To install the serverspec gem with the default settings in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.serverspec

To remove the serverspec gem in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.serverspec
  vars:
    serverspec_desired_state: absent

To install serverspec without its required dependencies in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.serverspec
  vars:
    serverspec_include_dependencies: no

License

MIT

Author Information

This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who enjoys learning and contributing to the Open Source community.

Informazioni sul progetto

Serverspec installation/uninstallation for infrastructure testing.

Installa
ansible-galaxy install darkwizard242.serverspec
Licenza
mit
Download
4.3k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!