{"id":24985881,"url":"https://github.com/samjuk/ansible-ecomscan","last_synced_at":"2026-05-07T15:48:43.890Z","repository":{"id":247656827,"uuid":"803533292","full_name":"SamJUK/ansible-ecomscan","owner":"SamJUK","description":"Ansible role to manage running Ecomscan across multiple websites","archived":false,"fork":false,"pushed_at":"2025-05-12T11:53:29.000Z","size":83,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T12:37:22.131Z","etag":null,"topics":["ansible","devsecops","ecomscan","magento2","malware","sansec","scanning","security","shopware","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamJUK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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}},"created_at":"2024-05-20T22:54:45.000Z","updated_at":"2025-05-12T11:53:32.000Z","dependencies_parsed_at":"2025-03-29T10:46:48.221Z","dependency_job_id":"2fdf41f8-5866-49ae-9e4e-f309b8e9837c","html_url":"https://github.com/SamJUK/ansible-ecomscan","commit_stats":null,"previous_names":["samjuk/ansible-ecomscan"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SamJUK/ansible-ecomscan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fansible-ecomscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fansible-ecomscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fansible-ecomscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fansible-ecomscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamJUK","download_url":"https://codeload.github.com/SamJUK/ansible-ecomscan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fansible-ecomscan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274113002,"owners_count":25224332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","devsecops","ecomscan","magento2","malware","sansec","scanning","security","shopware","woocommerce","wordpress"],"created_at":"2025-02-04T10:59:22.701Z","updated_at":"2026-05-07T15:48:43.752Z","avatar_url":"https://github.com/SamJUK.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role - Ecomscan\n\n![https://github.com/samjuk/ansible-ecomscan/workflows/CI/badge.svg](https://github.com/samjuk/ansible-ecomscan/workflows/CI/badge.svg)\n\nAn Ansible Role that installs and runs Ecomscan on Linux\n\n\n## Requirements\nNone.\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see defaults/main.yml):\n\n```yaml\necomscan_run: true\n```\nBoolean to set if ecomscan should execute during the playbook execution. \n\n```yaml\necomscan_cron: false\n```\nBoolean to set if ecomscan should be run by cron (@Note: This requires a paid license and a CRON schedule to be installed on your system)\n\n```yaml\necomscan_cron_expr: \"0 */4 * * *\"\n```\nCron expresion to define how frequently to run the schedule scans\n\n```yaml\necomscan_binary_download: true\n```\nBoolean to set if we should try and download the latest copy of Ecomscan\n\n```yaml\necomscan_binary_source: 'https://ecomscan.com/downloads/linux-amd64/ecomscan'\n```\nThe source url of the ecomscan binary, can be changed if use a different mirror.\n\n```yaml\necomscan_binary_path: ~/bin/ecomscan\n```\nFile location of where to store the downloaded binary\n\n```yaml\necomscan_key: trial\n```\nEcomscan license key to use for the scan\n\n```yaml\necomscan_report_email: root@localhost.local\n```\nComma seperated list of email addresses to send the Ecomscan email report to\n\n```yaml\necomscan_project_root: /var/www/vhosts/magento2/htdocs/\n```\nThe absolute file path to the Magento installation you want to scan\n\n```yaml\necomscan_minimum_confidence: 50\n```\nThe minimum confidence value that Ecomscan uses to determine if a file is clean\n\n```yaml\necomscan_maximum_filesize: 20000000\n```\nThe maximum file size in bytes to scan, anything larger will be skipped.\n\n```yaml\necomscan_deep: false\n```\nBoolean toggle to decide if Ecomscan should perform a deep or regular scan\n\n\n```yaml\necomscan_assert_no_malware: false\n```\nBoolean toggle to decide if we should assert that no malware is present. Is this is set to true, the playbook will exit with code `2`.\n\n\n```yaml\necomscan_assert_no_vulnerabilities: false\n```\nBoolean toggle to decide if we should assert that no vulnerabilities is present. Is this is set to true, the playbook will exit with code `2`\n\n\n## Example Playbook\nAn example playbook usage\n```yaml\n# ~/ecomscan/playbooks/scan.yml\n- name: Ecomscan\n  hosts: all\n  roles:\n    - { role: ecomscan, tags: ecomscan }\n```\n\n```yaml\n# ~/ecomscan/hosts/all.yml\nmagento2:\n  hosts:\n    client1-prod:\n      ansible_host: 0.0.0.0\n      ansible_user: ansible\n      ecomscan_key: K2T11V4\n      ecomscan_report_email: me@me.com,info@client1.info\n      ecomscan_project_root: /var/www/vhosts/staging.client1.info/htdocs/current/\n\n    client2-stg:\n      ansible_host: 0.0.0.0\n      ansible_port: 711\n      ansible_user: client2_mage_stg\n      ecomscan_key: T3STK3Y\n      ecomscan_report_email: me@me.com\n      ecomscan_project_root: /var/www/vhosts/staging.client2.com/htdocs/release/\n\n    client2-prod:\n      ansible_host: 0.0.0.0\n      ansible_port: 711\n      ansible_user: client2_mage_prod\n      ecomscan_report_email: me@me.com,info@client2.com\n      ecomscan_project_root: /var/www/vhosts/prod.client2.com/htdocs/release/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamjuk%2Fansible-ecomscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamjuk%2Fansible-ecomscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamjuk%2Fansible-ecomscan/lists"}