robertdebock.y
y
THIS ROLE HAS BEEN ARCHIVED AND IS NOT MAINTAINED.
Process images
GitHub | GitLab | Quality | Downloads | Version |
---|---|---|---|---|
Example Playbook
This example comes from molecule/resources/converge.yml
and is tested with each update, pull request, and release.
---
- name: converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: robertdebock.y
y_import_from: /data/in
y_export_to: files/out
y_presets:
- name: monochrome
Before running, you need to prepare the machine in CI with molecule/resources/prepare.yml
:
---
- name: prepare
hosts: all
become: yes
gather_facts: no
roles:
- role: robertdebock.bootstrap
- role: robertdebock.epel
tasks:
- name: create directories in container
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: "0644"
with_items:
- /data
- /data/in
- /data/out
- name: copy samples files to /data/in
ansible.builtin.copy:
src: in/
dest: /data/in
mode: "0644"
You can find a full explanation and example on how to use these roles.
Role Variables
These variables are located in defaults/main.yml
:
---
# defaults file for y
# y_presets is a list of presets to apply to images.
# y_presets:
# - name: monochrome
# y_import_from defines where to get files from.
# This could be /dev/sdb1 (for some SD card) for example.
y_import_from: /tmp/import
# y_export_to is the path for saving the images.
y_export_to: /tmp/export
Requirements
- pip packages found in requirements.txt.
Status of requirements
The following roles are used to set up a system. You can choose to prepare your system differently; I have tested these roles too.
Requirement | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap | ||
robertdebock.epel |
Context
This role is one of many compatible roles. Check out the documentation of these roles for more information.
Here's a list of related roles:
Compatibility
This role has been tested on the following container images:
container | tags |
---|---|
alpine | all |
amazon | Candidate |
el | 7, 8 |
debian | buster, bullseye |
fedora | all |
opensuse | all |
ubuntu | focal, bionic |
You need at least Ansible version 2.10. Tests have been conducted on:
- The previous version.
- The current version.
- The development version.
If you find any problems, please report them in GitHub.
License
Apache-2.0
Author Information
Please consider sponsoring me.
ansible-galaxy install robertdebock.y