goss-install

Snyk Known Vulnerabilities Galaxy

Ansible-goss-install

  • Ansible Role Version: 0.1.12
  • Goss Version: 0.4.7

Goss resources

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: localhost
  become: False
  gather_facts: True

  roles:
    - role: "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

I tried to work with latest versions of molecule and vagrant - however this didn't work at all. There were too many changes in molecule and didn't work at all. I needed to develop altearnative solution.

  • For now testing with molecule is not supported (removed).

GitHub Action for testing (Disabled)

Locally

This role can be tested locally with vagrant For more details please run

make testing-installation    ## This will display more instuctions related with testing locally
About

Simple role to install binary goss file

Install
ansible-galaxy install marcinpraczko/ansible-goss-install
GitHub repository
License
gpl-2.0
Downloads
138995