This collection aims to provide a set of small Ansible modules and helper functions.
Please read Contribution
The master
Branch is my Working Horse includes the "latest, hot shit" and can be complete broken!
If you want to use something stable, please use a Tagged Version!
Role | Build State | Description |
---|---|---|
bodsch.scm.forgejo | Ansible role to install and configure forgejo. | |
bodsch.scm.forgejo_runner | Ansible role to install and configure forgejo-runner |
Name | Description |
---|---|
bodsch.scm.github_checksum | read a defined checksumfile and return the checksum for an artefact |
bodsch.scm.github_latest | detect the latest release or tag from GitHub |
bodsch.scm.github_releases | Fetches the releases version of a GitHub project and returns the download urls |
bodsch.scm.forgejo | not used |
bodsch.scm.forgejo_auth | forgejo admin auth - Modify external auth providers |
bodsch.scm.forgejo_cli | wrapper to create runner token |
bodsch.scm.forgejo_migrate | not used |
bodsch.scm.forgejo_runner | append runner to forgejo |
bodsch.scm.forgejo_user | create forgejo admin user |
You can install the memsource collection with the Ansible Galaxy CLI:
#> ansible-galaxy collection install bodsch.scm
To install directly from GitHub:
#> ansible-galaxy collection install git@github.com:bodsch/ansible-collection-scm.git
You can also include it in a requirements.yml
file and install it with ansible-galaxy collection install -r requirements.yml
, using the format:
---
collections:
- name: bodsch.scm
The python module dependencies are not installed by ansible-galaxy
. They can
be manually installed using pip:
#> pip install -r requirements.txt
You can either call modules by their Fully Qualified Collection Namespace (FQCN), such as bodsch.scm.github_latest
,
or you can call modules by their short name if you list the bodsch.scm
collection in the playbook's collections
keyword:
---
- name: get latest release
delegate_to: localhost
become: false
run_once: true
bodsch.scm.github_latest:
project: scm
repository: alertmanager
user: "{{ lookup('env', 'GH_USER') | default(omit) }}"
password: "{{ lookup('env', 'GH_TOKEN') | default(omit) }}"
register: _latest_release
Please read Contribution
The master
Branch is my Working Horse includes the "latest, hot shit" and can be complete broken!
If you want to use something stable, please use a Tagged Version!
FREE SOFTWARE, HELL YEAH!