Home

Awesome

Snyk Known Vulnerabilities Galaxy

Ansible-goss-install

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:

- 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:

- 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.

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 instructions related with testing locally