{"id":19569049,"url":"https://github.com/buluma/ansible-role-mailhog","last_synced_at":"2026-05-04T01:32:13.133Z","repository":{"id":30046558,"uuid":"123769008","full_name":"buluma/ansible-role-mailhog","owner":"buluma","description":"Ansible Role - MailHog for catching and viewing emails","archived":false,"fork":false,"pushed_at":"2026-04-03T08:40:00.000Z","size":206,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-03T14:45:15.162Z","etag":null,"topics":["ansible","ansible-role","automation","molecule"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/buluma/mailhog","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buluma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"buluma"}},"created_at":"2018-03-04T08:05:12.000Z","updated_at":"2026-04-03T08:23:37.000Z","dependencies_parsed_at":"2024-01-19T17:30:06.986Z","dependency_job_id":"d257614f-0476-486a-b560-3a15f30d925e","html_url":"https://github.com/buluma/ansible-role-mailhog","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/buluma/ansible-role-mailhog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-mailhog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-mailhog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-mailhog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-mailhog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buluma","download_url":"https://codeload.github.com/buluma/ansible-role-mailhog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-mailhog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","automation","molecule"],"created_at":"2024-11-11T06:07:23.173Z","updated_at":"2026-05-04T01:32:13.127Z","avatar_url":"https://github.com/buluma.png","language":"Shell","funding_links":["https://github.com/sponsors/buluma"],"categories":[],"sub_categories":[],"readme":"# [Ansible role mailhog](#ansible-role-mailhog)\n\nMailHog for Linux\n\n|GitHub|Issues|Pull Requests|Version|Downloads|\n|------|------|-------------|-------|---------|\n|[![github](https://github.com/buluma/ansible-role-mailhog/actions/workflows/molecule.yml/badge.svg)](https://github.com/buluma/ansible-role-mailhog/actions/workflows/molecule.yml)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-mailhog.svg)](https://github.com/buluma/ansible-role-mailhog/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-mailhog.svg)](https://github.com/buluma/ansible-role-mailhog/pulls/)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-mailhog.svg)](https://github.com/buluma/ansible-role-mailhog/releases/)|[![Ansible Role](https://img.shields.io/ansible/role/d/buluma/mailhog)](https://galaxy.ansible.com/ui/standalone/roles/buluma/mailhog/documentation)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/buluma/ansible-role-mailhog/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- become: false\n  hosts: all\n  name: Converge\n  post_tasks:\n    - ansible.builtin.copy:\n        dest: /tmp/test-message\n        mode: \"0644\"\n        src: test-message\n      name: Copy test message into place.\n    - changed_when: false\n      name: Send an email via mhsendmail.\n      shell: cat /tmp/test-message | /opt/mailhog/mhsendmail johndoe@example.com\n    - ansible.builtin.uri:\n        url: http://localhost:8025/api/v2/messages\n      delay: 1\n      name: Test retrieiving messages from the MailHog API.\n      register: result\n      retries: 60\n      until: result.status == 200\n  pre_tasks:\n    - apt: update_cache=true cache_valid_time=600\n      name: Update apt cache.\n      when: ansible_os_family == 'Debian'\n    - ansible.builtin.package:\n        name:\n          - \"@Development tools\"\n          - tar\n          - unzip\n          - net-tools\n          - curl\n        state: present\n      name: Ensure build dependencies are installed (RedHat).\n      when: ansible_os_family == 'RedHat'\n    - ansible.builtin.apt:\n        name:\n          - build-essential\n          - tar\n          - unzip\n          - net-tools\n          - curl\n        state: present\n      name: Ensure build dependencies are installed (Debian).\n      when: ansible_os_family == 'Debian'\n  roles:\n    - buluma.daemonize\n    - ansible-role-mailhog\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/buluma/ansible-role-mailhog/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- become: true\n  gather_facts: false\n  hosts: all\n  name: Prepare\n  roles:\n    - role: buluma.bootstrap\n```\n\nAlso see a [full explanation and example](https://buluma.github.io/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/buluma/ansible-role-mailhog/blob/master/defaults/main.yml):\n\n```yaml\n---\nmailhog_binary_url: \"https://github.com/mailhog/MailHog/releases/download/v{{ mailhog_version }}/MailHog_linux_amd64\"\nmailhog_daemonize_bin_path: /usr/sbin/daemonize\nmailhog_install_dir: /opt/mailhog\nmailhog_version: \"1.0.0\"\nmhsendmail_binary_url: \"https://github.com/mailhog/mhsendmail/releases/download/v{{ mhsendmail_version }}/mhsendmail_linux_amd64\"\nmhsendmail_version: \"0.2.0\"\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/buluma/ansible-role-mailhog/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub |\n|-------------|--------|\n|[buluma.bootstrap](https://galaxy.ansible.com/buluma/bootstrap)|[![Build Status GitHub](https://github.com/buluma/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-bootstrap/actions)|\n|[buluma.daemonize](https://galaxy.ansible.com/buluma/daemonize)|[![Build Status GitHub](https://github.com/buluma/ansible-role-daemonize/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-daemonize/actions)|\n\n## [Dependencies](#dependencies)\n\nMost roles require some kind of preparation, this is done in `molecule/default/prepare.yml`. This role has a \"hard\" dependency on the following roles:\n\n- {'role': 'buluma.daemonize'}\n\n## [Context](#context)\n\nThis role is part of many compatible roles. Have a look at [the documentation of these roles](https://buluma.github.io/) for further information.\n\nHere is an overview of related roles:\n\n![dependencies](https://raw.githubusercontent.com/buluma/ansible-role-mailhog/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|all|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|\n\nThe minimum version of Ansible required is 2.4, tests have been done on:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them on [GitHub](https://github.com/buluma/ansible-role-mailhog/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/buluma/ansible-role-mailhog/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[buluma](https://buluma.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuluma%2Fansible-role-mailhog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuluma%2Fansible-role-mailhog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuluma%2Fansible-role-mailhog/lists"}