ElevateOps / ansible-goss-install

Simple role to install goss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snyk Known Vulnerabilities Galaxy

Ansible-goss-install

Version 0.1.3

This role aims to help with installation of validation tool: goss (Version: 0.3.7)

There are already modules:

Installation

Directly from ansible-galaxy (latest release)

$ ansible-galaxy install marcinpraczko.goss-install

Directly from github repository

Sometimes some changes has been applied to develop or feature branch and are not yet released. Ansible-galaxy allows install roles directly from GitHub.

mkdir testing-roles
cd testing-roles
ansible-galaxy install -p roles git+https://github.com/marcinpraczko/ansible-goss-install.git,develop

Above example will install develop branch. This can be adjusted to any git SHA commit, tag or branch name - depends of requirements.

Checking what version is installed can be done with command:

ansible-galaxy list -p roles

Variables

All important variables are in file: default/main.yml.

Example of playbooks

Install to user directory

Following example will install goss in user home directory: ${HOME}/bin:

  • ${HOME}/bin - folder will be created.
- name: "Install goss in home directory"
  hosts: all
  become: False
  gather_facts: False

  roles:
    - "marcinpraczko.goss-install"

Install on system

Following example will install goss in system: /usr/local/bin:

  • /usr/local/bin - folder will be created.
- name: "Install goss in system"
  hosts: all
  become: True
  gather_facts: False

  roles:
    - role: marcinpraczko.goss-install
      goss_dst_dir: /usr/local/bin

Testing

This role can be tested via molecule with commands (Following commands will install it):

make create-python-venv
make test-molecule

For more detail about molecule, please visit:

About

Simple role to install goss

License:GNU General Public License v2.0


Languages

Language:Makefile 62.7%Language:Shell 37.3%