Compare commits

...

8 Commits
v1.0.0 ... main

Author SHA1 Message Date
d02ac6c132 chore(release): 1.1.2 2023-01-12 11:41:53 +01:00
37c5cb8db1 chore (code): Lint fixes 2023-01-12 11:41:47 +01:00
8fbed72e1b chore(release): 1.1.1 2023-01-12 11:29:21 +01:00
97717f753d chore (docs): update readme 2023-01-12 11:29:09 +01:00
7f1a74322b Fix container version. 2023-01-11 21:36:11 +01:00
f5fcb76a49 chore(release): 1.1.0 2023-01-11 21:22:37 +01:00
632f196976 fix: Update tags for ansible galaxy. 2023-01-10 18:12:44 +00:00
83271e3a66 Update 'meta/main.yml' 2023-01-10 18:04:31 +00:00
10 changed files with 111 additions and 87 deletions

View File

@ -4,6 +4,7 @@ extends: default
ignore: |
molecule/**/tests/
.venv/
.github
.travis.yml

View File

@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.1.2](https://git.laurivan.com/laur/ansible-role-mealie/compare/v1.1.1...v1.1.2) (2023-01-12)
### [1.1.1](https://git.laurivan.com/laur/ansible-role-mealie/compare/v1.1.0...v1.1.1) (2023-01-12)
## [1.1.0](https://git.laurivan.com/laur/ansible-role-mealie/compare/v1.0.0...v1.1.0) (2023-01-11)
### Bug Fixes
* Update tags for ansible galaxy. ([632f196](https://git.laurivan.com/laur/ansible-role-mealie/commit/632f1969765b995bb4a693d0646e9397bb9f04a3))
## 1.0.0 (2023-01-09)

View File

@ -2,4 +2,67 @@
Contributions (pull requests, feature requests, and so on) are accepted on project Github.com page. Creating Issue before pull request is preffered. Acceptation is not automatic, project management can reject it, or request changes.
Issues (bugs and feature request) reports are accepted on project Github.
Issues (bugs and feature request) reports are accepted on project Github.
## Getting Started
These instructions will get you a copy of the role for your Ansible playbook. Once launched, it will install Mealie.
### Prerequisities
Ansible 5.2.0 version installed.
Molecule 3.x.x version installed.
For testing purposes, [Molecule](https://molecule.readthedocs.io/) with [Docker](https://www.docker.com/) as driver and [Goss](https://github.com/aelsabbahy/goss) as verifier.
### Installing
Create or add to your roles dependency file (e.g requirements.yml):
```yml
- src: ansible-role-mealie
version: 1.0.0
name: laurivan.mealie
```
Install the role with ansible-galaxy command:
```sh
ansible-galaxy install -p roles -r requirements.yml -f
```
Use in a playbook:
```yml
---
- hosts: someserver
roles:
- role: laurivan.mealie
```
## Usage
Look to the [defaults](defaults/main.yml) properties file to see the possible configuration properties, it is very likely that you will not need to override any variables.
## Testing
### Install dependencies
```sh
pipenv sync
```
For more information read the [pipenv docs](https://pipenv-fork.readthedocs.io/en/latest/).
### Run test
```sh
pipenv run molecule test
```
## Versioning
For the versions available, see the [tags on this repository](https://git.laurivan.com/Dev/ansible-role-mealie/tags).
Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.

View File

@ -2,75 +2,49 @@
This role installs Mealie via Docker compose.
This role has been generated using the [cookiecutter](https://github.com/cookiecutter/cookiecutter) tool, you can generate a similar role that fits your needs using the this [cookiecutter template](https://github.com/idealista/cookiecutter-ansible-role).
## Requirements
- [Getting Started](#getting-started)
- [Prerequisities](#prerequisities)
- [Installing](#installing)
- [Usage](#usage)
- [Testing](#testing)
- [Built With](#built-with)
- [Versioning](#versioning)
- [Authors](#authors)
- [License](#license)
- [Contributing](#contributing)
None
## Getting Started
## Role Variables
These instructions will get you a copy of the role for your Ansible playbook. Once launched, it will install Mealie.
### Prerequisities
Ansible 5.2.0 version installed.
Molecule 3.x.x version installed.
For testing purposes, [Molecule](https://molecule.readthedocs.io/) with [Docker](https://www.docker.com/) as driver and [Goss](https://github.com/aelsabbahy/goss) as verifier.
### Installing
Create or add to your roles dependency file (e.g requirements.yml):
All variables are listed below (see also `defaults/main.yml`).
```yml
- src: ansible-role-mealie
version: 1.0.0
name: laurivan.mealie
mealie_docker_version: "latest"
mealie_port: "9925"
mealie_timezone: "Europe/Brussels"
# Mealie paths
mealie_root_path: /opt/mealie
mealie_config_path: "{{ mealie_root_path }}/conf"
mealie_data_path: "{{ mealie_root_path }}/data"
mealie_skeleton_paths:
- "{{ mealie_config_path }}"
- "{{ mealie_data_path }}"
```
Install the role with ansible-galaxy command:
## Dependencies
```sh
ansible-galaxy install -p roles -r requirements.yml -f
```
You need a machine with docker and docker-compose installed.
Use in a playbook:
## Example Playbook
```yml
---
- hosts: someserver
- hosts: servers
roles:
- role: laurivan.mealie
- 'laurivan.mealie'
```
## Usage
## License
Look to the [defaults](defaults/main.yml) properties file to see the possible configuration properties, it is very likely that you will not need to override any variables.
This project is licensed under the [MIT](https://opensource.org/licenses/MIT) license - see the [LICENSE](LICENSE) file for details.
## Testing
![MIT License](https://img.shields.io/badge/license-MIT%20License-brightgreen)
### Install dependencies
## Author Information
```sh
pipenv sync
```
For more information read the [pipenv docs](https://pipenv-fork.readthedocs.io/en/latest/).
### Run test
```sh
pipenv run molecule test
```
This role was created in 2023 by [Laur Ivan](https://www.laurivan.com).
## Built With
@ -78,22 +52,6 @@ pipenv run molecule test
![Molecule](https://img.shields.io/badge/molecule-3.4.0-green.svg)
![Goss](https://img.shields.io/badge/goss-0.3.16-green.svg)
## Versioning
For the versions available, see the [tags on this repository](https://git.laurivan.com/Dev/ansible-role-mealie/tags).
Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.
## Authors
- **Laur IVAN** - [web](https://www.laurivan.com)
## License
![MIT License](https://img.shields.io/badge/license-MIT%20License-brightgreen)
This project is licensed under the [MIT](https://opensource.org/licenses/MIT) license - see the [LICENSE](LICENSE) file for details.
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

View File

@ -14,5 +14,3 @@ mealie_skeleton_paths:
# Documentation
mealie_documentation_link: "https://git.laurivan.com/Dev/ansible-role-mealie/src/branch/main/README.md"

View File

@ -3,27 +3,22 @@
galaxy_info:
author: Laur Ivan
namespace: laurivan
role_name: mealie
description: Mealie Role
description: Install Mealie with SQLite via Docker
min_ansible_version: 2.4
min_ansible_version: 2.4
license: Apache 2.0
min_ansible_container_version: 2.4
license: MIT
galaxy_tags:
- tag1
- tag2
- tag3
- mealie
- recipe
- docker
platforms:
- name: Debian
versions:
versions:
- bullseye
- buster
- name: Ubuntu
versions:
versions:
- bionic
- focal
- jammy

View File

@ -20,4 +20,4 @@
ansible.builtin.file:
path: "{{ mealie_config_path | expanduser | realpath }}/docker-compose.yml"
state: absent
when: docker_compose_file.stat.exists
when: docker_compose_file.stat.exists

View File

@ -35,4 +35,3 @@ provisioner:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
verifier:
name: ansible

View File

@ -20,4 +20,4 @@
loop:
- "docker-compose.yml"
tags:
- mealie_configure
- mealie_configure

View File

@ -9,4 +9,3 @@
import_tasks: install.yml
tags:
- mealie_install