{"id":20716388,"url":"https://github.com/mvladislav/ansible-security","last_synced_at":"2026-04-20T12:33:38.208Z","repository":{"id":151662951,"uuid":"383648176","full_name":"MVladislav/ansible-security","owner":"MVladislav","description":"ansible-role to install and setup auditd, fail2ban and snmp.","archived":false,"fork":false,"pushed_at":"2026-04-04T17:29:33.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T20:16:27.192Z","etag":null,"topics":["ansible-role","auditd","fail2ban","linux","snmp","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MVladislav.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":"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}},"created_at":"2021-07-07T02:11:38.000Z","updated_at":"2026-04-04T17:29:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"dffb1f3b-321d-4262-8fd7-c5c558e67eb1","html_url":"https://github.com/MVladislav/ansible-security","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MVladislav/ansible-security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MVladislav","download_url":"https://codeload.github.com/MVladislav/ansible-security/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-security/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32047242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-role","auditd","fail2ban","linux","snmp","ubuntu"],"created_at":"2024-11-17T03:05:40.111Z","updated_at":"2026-04-20T12:33:38.201Z","avatar_url":"https://github.com/MVladislav.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Security\n\n[![Ansible Lint](https://github.com/MVladislav/ansible-security/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/MVladislav/ansible-security/actions/workflows/ansible-lint.yml)\n[![Ansible Molecule Test](https://github.com/MVladislav/ansible-security/actions/workflows/ci.yml/badge.svg)](https://github.com/MVladislav/ansible-security/actions/workflows/ci.yml)\n\n- [Security](#security)\n  - [Role Variables](#role-variables)\n  - [Dependencies](#dependencies)\n  - [Example Playbook](#example-playbook)\n  - [License](#license)\n\n---\n\nYou can checkout [MVladislav - ansible-env-setup - playbooks](https://github.com/MVladislav/ansible-env-setup/tree/main/playbooks) for how i use it in general.\n\nTested with:\n\n- Ubuntu 23.04\n- Ubuntu 24.04\n- Ubuntu 25.04\n\n## Role Variables\n\n```yml\nsecurity_setup_services:\n  auditd: true\n  fail2ban: true\n  snmp: false\n  ssh: true\n\nclients:\n  - name: \"{{ ansible_user }}\"\n\nsecurity_fail2ban_proxmox: false\n\nsecurity_snmp_user: snmp\nsecurity_snmp_password: \u003cPASSWORD\u003e\nsecurity_snmp_encryption: \u003cENC\u003e\nsecurity_snmp_location: home\nsecurity_snmp_contact: root\nsecurity_snmp_address_ipv4: \"{{ omit }}\"\nsecurity_snmp_address_ipv6: \"{{ omit }}\"\nsecurity_snmp_port_ipv4: 161\n# security_snmp_port_ipv6: 161\n```\n\n## Dependencies\n\nDeveloped and testes with Ansible 2.14.4\n\n## Example Playbook\n\n```yml\n- hosts: servers\n  roles:\n    - role: security\n      ansible_user: \u003cTODO-USERNAME\u003e\n\n      security_setup_services:\n        auditd: true\n        fail2ban: true\n        snmp: false\n        ssh: true\n\n      clients:\n        - name: \"{{ ansible_user }}\"\n\n      security_fail2ban_proxmox: false\n\n      security_snmp_user: snmp\n      security_snmp_password: \u003cPASSWORD\u003e\n      security_snmp_encryption: \u003cENC\u003e\n      security_snmp_location: home\n      security_snmp_contact: root\n      security_snmp_address_ipv4: \"{{ omit }}\"\n      security_snmp_address_ipv6: \"{{ omit }}\"\n      security_snmp_port_ipv4: 161\n      # security_snmp_port_ipv6: 161\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvladislav%2Fansible-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvladislav%2Fansible-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvladislav%2Fansible-security/lists"}