Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darkwizard242/ansible-role-hugo
Ansible role for Hugo. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-hugo
ansible ansible-galaxy ansible-role hugo hugo-site static-site-generator system
Last synced: 2 months ago
JSON representation
Ansible role for Hugo. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-hugo
- Owner: darkwizard242
- License: mit
- Created: 2020-03-28T04:07:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T21:01:36.000Z (3 months ago)
- Last Synced: 2024-10-26T08:32:33.956Z (2 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, hugo, hugo-site, static-site-generator, system
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/hugo
- Size: 159 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![build-test](https://github.com/darkwizard242/ansible-role-hugo/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-hugo/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-hugo/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-hugo/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/hugo) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-hugo&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-hugo) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-hugo&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-hugo) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-hugo&metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-hugo) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-hugo?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-hugo?color=orange&style=flat-square)
# Ansible Role: Hugo
Role to install (_by default_) extended [hugo](https://github.com/gohugoio/hugo) on **Debian/Ubuntu** and **EL** systems.
## Requirements
None.
## Role Variables
Available variables are listed below (located in `defaults/main.yml`):
### Variables list:
```yaml
hugo_app: hugo_extended
hugo_version: 0.136.5
hugo_os: "{{ ansible_system | lower }}"
hugo_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
hugo_dl_url: https://github.com/gohugoio/hugo/releases/download/v{{ hugo_version }}/{{ hugo_app }}_{{ hugo_version }}_{{ hugo_os }}-{{ hugo_architecture_map[ansible_architecture] }}.tar.gz
hugo_bin_path: /usr/local/bin
hugo_file_owner: root
hugo_file_group: root
hugo_file_mode: '0755'
```### Variables table:
Variable | Description
--------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------
hugo_app | Defines the app to install i.e. **hugo_extended**
hugo_version | Defined to dynamically fetch the desired version to install. Defaults to: **0.136.5**
hugo_os | Defines OS type. Used for obtaining the correct type of binaries based on OS.
hugo_architecture_map | Defines Architecture type. Used for obtaining the correct type of binaries based on Architecture.
hugo_dl_url | Defines URL to download the hugo binary from.
hugo_bin_path | Defined to dynamically set the appropriate path to store hugo binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
hugo_file_owner | Owner for the binary file of hugo.
hugo_file_group | Group for the binary file of hugo.
hugo_file_mode | Mode for the binary file of hugo.## Dependencies
None
## Example Playbook
For default behaviour of role (i.e. installation of **hugo**) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.hugo
```For customizing behavior of role (i.e. specifying the desired **hugo** version) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.hugo
vars:
hugo_version: 0.78.2
```For customizing behavior of role (i.e. placing binary of **hugo** package in different location) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.hugo
vars:
hugo_bin_path: /bin/
```## License
[MIT](https://github.com/darkwizard242/ansible-role-hugo/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).