{"id":24653884,"url":"https://github.com/joshbeard/ansible-ipset","last_synced_at":"2026-05-08T18:36:03.337Z","repository":{"id":86722821,"uuid":"456624768","full_name":"joshbeard/ansible-ipset","owner":"joshbeard","description":"Ansible role for managing ipset","archived":false,"fork":false,"pushed_at":"2023-09-25T04:33:34.000Z","size":40,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T01:05:30.778Z","etag":null,"topics":["ansible","ansible-role","ipset","iptables"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshbeard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-02-07T18:18:50.000Z","updated_at":"2022-03-18T05:29:03.000Z","dependencies_parsed_at":"2023-03-04T02:30:31.637Z","dependency_job_id":null,"html_url":"https://github.com/joshbeard/ansible-ipset","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joshbeard/ansible-ipset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fansible-ipset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fansible-ipset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fansible-ipset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fansible-ipset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbeard","download_url":"https://codeload.github.com/joshbeard/ansible-ipset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fansible-ipset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32792449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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","ansible-role","ipset","iptables"],"created_at":"2025-01-25T21:14:24.361Z","updated_at":"2026-05-08T18:36:03.315Z","avatar_url":"https://github.com/joshbeard.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role for ipset\n\nManages Linux [IP sets](https://ipset.netfilter.org/) using the\n[ipset](https://ipset.netfilter.org/ipset.man.html) utility.\n\n__NOTICE:__ You might consider using [mrlesmithjr.ipset](https://galaxy.ansible.com/mrlesmithjr/ipset)\ninstead, which is much more comprehensive than _this_ role.\n\nIP sets are useful for firewall rules.\n\nThis role works well with the [ome.iptables-raw](https://github.com/ome/ansible-role-iptables-raw)\nAnsible role for managing IPTables rules.\n\n## Usage\n\nInclude the role in an Ansible Galaxy [`requirements.yml`](https://galaxy.ansible.com/docs/using/installing.html#multiple-roles-from-multiple-files) file:\n\n```yaml\nroles:\n  - src: https://github.com/joshbeard/ansible-ipset.git\n    version: '0.1.0'\n    scm: git\n    name: ipset\n```\n\nInclude in a playbook:\n\n```yaml\n- name: foo\n  hosts: foo\n  vars:\n    ipsets:\n      - name: foo_intranet\n        type: 'hash:net'\n        set:\n          - 192.168.0.0/24\n          - 192.168.16.0/24\n      - name: bar_servers\n        type: 'hash:net'\n        set:\n          - 192.168.0.4\n          - 192.168.16.7\n  roles:\n    - ipset\n```\n\n## Role Variables\n\nDefault values are set in [`defaults/main.yml`](https://github.com/joshbeard/ansible-ipset/blob/master/defaults/main.yml).\n\n### `ipset_config_dir`\n\nThe absolute path to the config directory for ipset configurations.\n\nDefault: `/etc/sysconfig/ipset.d`\n\n### `ipset_save_file`\n\nThe base filename of the ipset config file.\n\nDefault: `ipset.cfg`\n\n### `ipsets`\n\nList of ipset configuration.\n\nThe list should contain dictionaries for each ipset with the following keys:\n\n* `name` - the name of the ipset\n* `type` - the type of the ipset (e.g. `hash:net`)\n* `set` - list of addresses to include in the ipset.\n\nRefer to the [example above](#usage).\n\nDefault: `[]`\n\n### `ipset_maxelem`\n\nThe maximal number of elements which can be stored in the set.\n\nDefault: `65536`\n\n## Notes\n\nThis role has only been tested/used on EL7, but is generic that it's likely\nusable on other distros.\n\n## License\n\n[Zero-Clause BSD](https://opensource.org/licenses/0BSD)\n\nSee [`LICENSE`](https://github.com/joshbeard/ansible-ipset/blob/master/LICENSE)\n\n## Authors\n\n[Josh Beard](https://joshbeard.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fansible-ipset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbeard%2Fansible-ipset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fansible-ipset/lists"}