{"id":13753671,"url":"https://github.com/freeipa/ansible-freeipa","last_synced_at":"2026-03-11T21:52:06.832Z","repository":{"id":37444139,"uuid":"100011735","full_name":"freeipa/ansible-freeipa","owner":"freeipa","description":"Ansible roles and modules for FreeIPA","archived":false,"fork":false,"pushed_at":"2026-02-12T12:36:23.000Z","size":4226,"stargazers_count":549,"open_issues_count":205,"forks_count":236,"subscribers_count":20,"default_branch":"master","last_synced_at":"2026-02-12T21:24:10.226Z","etag":null,"topics":["ansible","freeipa","freeipa-ansible-roles","playbook"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freeipa.png","metadata":{"files":{"readme":"README-automember.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","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":"2017-08-11T08:45:10.000Z","updated_at":"2026-02-12T12:36:29.000Z","dependencies_parsed_at":"2023-02-15T00:16:53.881Z","dependency_job_id":"e61a0426-8d4b-49b3-a1ea-f267ca943978","html_url":"https://github.com/freeipa/ansible-freeipa","commit_stats":null,"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/freeipa/ansible-freeipa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeipa%2Fansible-freeipa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeipa%2Fansible-freeipa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeipa%2Fansible-freeipa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeipa%2Fansible-freeipa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeipa","download_url":"https://codeload.github.com/freeipa/ansible-freeipa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeipa%2Fansible-freeipa/sbom","scorecard":{"id":410760,"data":{"date":"2025-08-11","repo":{"name":"github.com/freeipa/ansible-freeipa","commit":"4d22e917dfbadd1c9e81295c322da93984d39b45"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.9,"checks":[{"name":"Maintained","score":10,"reason":"29 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ansible-test.yml:1","Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/readme.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ansible-test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/ansible-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/readme.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/freeipa/ansible-freeipa/readme.yml/master?enable=pin","Warn: pipCommand not pinned by hash: tests/sanity/sanity.sh:15","Warn: pipCommand not pinned by hash: tests/sanity/sanity.sh:16","Warn: pipCommand not pinned by hash: tests/sanity/sanity.sh:17","Warn: pipCommand not pinned by hash: utils/run-tests.sh:145","Warn: pipCommand not pinned by hash: utils/shansible:13","Warn: pipCommand not pinned by hash: utils/shfun:89","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:70","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:36","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:53","Warn: pipCommand not pinned by hash: .github/workflows/lint.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/lint.yml:49","Warn: pipCommand not pinned by hash: .github/workflows/lint.yml:64","Info:   0 out of  19 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of  13 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T22:39:32.586Z","repository_id":37444139,"created_at":"2025-08-18T22:39:32.586Z","updated_at":"2025-08-18T22:39:32.586Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30402787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T21:51:19.558Z","status":"ssl_error","status_checked_at":"2026-03-11T21:50:57.892Z","response_time":84,"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","freeipa","freeipa-ansible-roles","playbook"],"created_at":"2024-08-03T09:01:27.053Z","updated_at":"2026-03-11T21:52:06.813Z","avatar_url":"https://github.com/freeipa.png","language":"Python","funding_links":[],"categories":["Python","playbook"],"sub_categories":[],"readme":"Automember module\n===========\n\nDescription\n-----------\n\nThe automember module allows to ensure presence or absence of automember rules and manage automember rule conditions.\n\nFeatures\n--------\n\n* Automember management\n\n\nSupported FreeIPA Versions\n--------------------------\n\nFreeIPA versions 4.4.0 and up are supported by the ipaautomember module.\n\n\nRequirements\n------------\n\n**Controller**\n* Ansible version: 2.14+\n\n**Node**\n* Supported FreeIPA version (see above)\n\n\nUsage\n=====\n\nExample inventory file\n\n```ini\n[ipaserver]\nipaserver.test.local\n```\n\nExample playbook to make sure group automember rule is present with no conditions.\n\n```yaml\n---\n- name: Playbook to ensure a group automember rule is present with no conditions\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        name: admins\n        description: \"my automember rule\"\n        automember_type: group\n```\n\nExample playbook to make sure group automember rule is present with conditions:\n\n```yaml\n---\n- name: Playbook to add a group automember rule with two conditions\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n  - ipaautomember:\n      ipaadmin_password: SomeADMINpassword\n      name: admins\n      description: \"my automember rule\"\n      automember_type: group\n      inclusive:\n        - key: mail\n          expression: '@example.com$'\n      exclusive:\n        - key: uid\n          expression: \"1234\"\n```\n\nExample playbook to delete a group automember rule:\n\n```yaml\n- name: Playbook to delete a group automember rule\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        name: admins\n        description: \"my automember rule\"\n        automember_type: group\n        state: absent\n```\n\nExample playbook to add an inclusive condition to an existing rule\n\n```yaml\n- name: Playbook to add an inclusive condition to an existing rule\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        name: \"My domain hosts\"\n        description: \"my automember condition\"\n        automember_type: hostgroup\n        action: member\n        inclusive:\n          - key: fqdn\n            expression: \".*.mydomain.com\"\n```\n\nExample playbook to ensure group membership for all users has been rebuilt\n\n```yaml\n- name: Playbook to ensure group membership for all users has been rebuilt\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: group\n        state: rebuilt\n```\n\nExample playbook to ensure group membership for given users has been rebuilt\n\n\n```yaml\n- name: Playbook to ensure group membership for given users has been rebuilt\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        users:\n        - user1\n        - user2\n        state: rebuilt\n```\n\nExample playbook to ensure hostgroup membership for all hosts has been rebuilt\n\n```yaml\n- name: Playbook to ensure hostgroup membership for all hosts has been rebuilt\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: hostgroup\n        state: rebuilt\n```\n\nExample playbook to ensure hostgroup membership for given hosts has been rebuilt\n\n```yaml\n- name: Playbook to ensure hostgroup membership for given hosts has been rebuilt\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        hosts:\n        - host1.mydomain.com\n        - host2.mydomain.com\n        state: rebuilt\n```\n\nExample playbook to ensure default group fallback_group for all unmatched group entries is set\n\n```yaml\n- name: Playbook to ensure default group fallback_group for all unmatched group entries is set\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: group\n        default_group: fallback_group\n```\n\nExample playbook to ensure default group for all unmatched group entries is not set\n\n```yaml\n- name: Playbook to ensure default group for all unmatched group entries is not set\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        default_group: \"\"\n        automember_type: group\n        state: absent\n```\n\nExample playbook to ensure default hostgroup fallback_hostgroup for all unmatched group entries\n\n```yaml\n- name: Playbook to ensure default hostgroup fallback_hostgroup for all unmatched group entries\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: hostgroup\n        default_group: fallback_hostgroup\n```\n\nExample playbook to ensure default hostgroup for all unmatched group entries is not set\n\n```yaml\n- name: Playbook to ensure default hostgroup for all unmatched group entries is not set\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: hostgroup\n        default_group: \"\"\n        state: absent\n```\n\nExample playbook to ensure all orphan automember group rules are removed:\n\n```yaml\n- name: Playbook to ensure all orphan automember group rules are removed\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: group\n        state: orphans_removed\n```\n\nExample playbook to ensure all orphan automember hostgroup rules are removed:\n\n```yaml\n- name: Playbook to ensure all orphan automember hostgroup rules are removed\n  hosts: ipaserver\n  become: yes\n  gather_facts: no\n  tasks:\n    - ipaautomember:\n        ipaadmin_password: SomeADMINpassword\n        automember_type: hostgroup\n        state: orphans_removed\n```\n\n\nVariables\n---------\n\nVariable | Description | Required\n-------- | ----------- | --------\n`ipaadmin_principal` | The admin principal is a string and defaults to `admin` | no\n`ipaadmin_password` | The admin password is a string and is required if there is no admin ticket available on the node | no\n`ipaapi_context` | The context in which the module will execute. Executing in a server context is preferred. If not provided context will be determined by the execution environment. Valid values are `server` and `client`. | no\n`ipaapi_ldap_cache` | Use LDAP cache for IPA connection. The bool setting defaults to yes. (bool) | no\n`name` \\| `cn` | Automember rule. | yes\n`description` | A description of this auto member rule. | no\n`automember_type` | Grouping to which the rule applies. It can be one of `group`, `hostgroup`. | yes\n`inclusive` | List of dictionaries in the format of `{'key': attribute, 'expression': inclusive_regex}` | no\n`exclusive` | List of dictionaries in the format of `{'key': attribute, 'expression': exclusive_regex}` | no\n`users` | Users to rebuild membership for. | no\n`hosts` | Hosts to rebuild membership for. | no\n`no_wait` | Don't wait for rebuilding membership. | no\n`default_group` | Default (fallback) group for all unmatched entries. Use the empty string \"\" for ensuring the default group is not set. | no\n`action` | Work on automember or member level. It can be one of `member` or `automember` and defaults to `automember`. | no\n`state` | The state to ensure. It can be one of `present`, `absent`, 'rebuilt'. 'orphans_removed' default: `present`. | no\n\n\nAuthors\n=======\n\nMark Hahl\nThomas Woerner\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreeipa%2Fansible-freeipa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreeipa%2Fansible-freeipa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreeipa%2Fansible-freeipa/lists"}