marcinpraczko.goss-install
Ansible-goss-install
- Ansible Role Version:
0.1.12
- Goss Version:
0.4.7
Goss Resources
Installation
Install from Ansible Galaxy (latest version)
$ ansible-galaxy install marcinpraczko.goss-install
Install from GitHub Repository
If there are new changes in the develop
or feature
branch that haven't been released yet, you can install directly from GitHub:
mkdir testing-roles
cd testing-roles
ansible-galaxy install -p roles git+https://github.com/marcinpraczko/ansible-goss-install.git,develop
The above command installs the develop
branch. You can specify any commit SHA, tag, or branch name as needed.
To check what version is currently installed, run:
ansible-galaxy list -p roles
Variables
All relevant variables are located in the file: default/main.yml
.
Example Playbooks
Install to User Directory
This example installs goss
in the user's home directory: ${HOME}/bin
. The folder ${HOME}/bin
will be created.
- name: "Install goss in home directory"
hosts: localhost
become: False
gather_facts: True
roles:
- role: "marcinpraczko.goss-install"
Install on System
This example installs goss
at the system level: /usr/local/bin
. The folder /usr/local/bin
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 attempted to use the latest versions of molecule
and vagrant
, but it didn't work well due to numerous changes in molecule
. Therefore, I had to find alternatives.
- Currently, testing with
molecule
is not supported (removed).
GitHub Action for Testing (Disabled)
Locally
You can test this role locally using vagrant
. For more information, run:
make testing-installation ## This command will provide more instructions on local testing
ansible-galaxy install marcinpraczko.goss-install