{"id":20314454,"url":"https://github.com/release-engineering/ansible-pulp2-api","last_synced_at":"2025-06-16T02:07:27.360Z","repository":{"id":37990008,"uuid":"401864706","full_name":"release-engineering/ansible-pulp2-api","owner":"release-engineering","description":"ansible collection for managing pulp2 resources","archived":false,"fork":false,"pushed_at":"2025-05-06T20:29:37.000Z","size":488,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T21:33:46.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/release-engineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-08-31T22:57:22.000Z","updated_at":"2025-05-06T20:29:39.000Z","dependencies_parsed_at":"2023-09-27T01:06:53.411Z","dependency_job_id":"c65d7c56-c0b1-4528-801a-9c28f3211772","html_url":"https://github.com/release-engineering/ansible-pulp2-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/release-engineering/ansible-pulp2-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fansible-pulp2-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fansible-pulp2-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fansible-pulp2-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fansible-pulp2-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/release-engineering","download_url":"https://codeload.github.com/release-engineering/ansible-pulp2-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fansible-pulp2-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260083860,"owners_count":22956408,"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","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":[],"created_at":"2024-11-14T18:15:25.158Z","updated_at":"2025-06-16T02:07:27.332Z","avatar_url":"https://github.com/release-engineering.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Collection: release_engineering.pulp2_api\n\nAn ansible collection for managing Pulp 2.x resources.\n\n[![Build Status](https://github.com/release-engineering/ansible-pulp2-api/actions/workflows/tox.yml/badge.svg)](https://github.com/release-engineering/ansible-pulp2-api/actions/workflows/tox.yml)\n\n\u003c!--TOC--\u003e\n\n- [Ansible Collection: release_engineering.pulp2_api](#ansible-collection-release_engineeringpulp2_api)\n  - [Overview](#overview)\n  - [Installation](#installation)\n  - [Module reference](#module-reference)\n    - [Common arguments](#common-arguments)\n    - [pulp_user](#pulp_user)\n    - [pulp_role](#pulp_role)\n  - [Example](#example)\n  - [License](#license)\n\n\u003c!--TOC--\u003e\n\n## Overview\n\nThis collection includes modules to adjust certain resources within a\n[Pulp](https://pulpproject.org/) server. It is compatible with Pulp 2 and\nincompatible with Pulp 3.\n\nAll operations are performed using HTTP requests to Pulp's API.\n\n## Installation\n\nThis collection is not currently published on galaxy.ansible.com.\nIt may be installed directly from the git repo:\n\n```\nansible-galaxy collection install git+https://github.com/release-engineering/ansible-pulp2-api.git,main\n```\n\nIf you are using an older version of ansible which does not support installing\nfrom git, you can install from a tarball of the latest stable release:\n\n```\nansible-galaxy collection install https://github.com/release-engineering/ansible-pulp2-api/releases/latest/download/collection.tar.gz\n```\n\n## Module reference\n\nNote: this documentation is a summary only. Complete docs may be reviewed using\nthe `ansible-doc` tool if the collection is installed.\n\n### Common arguments\n\nThese arguments are supported by all modules:\n\n| Argument | Notes |\n| -------- | ----- |\n| pulp_url | Base URL of the Pulp service, including trailing \"/pulp/api/v2\". |\n| validate_certs | As for [ansible.builtin.uri]. |\n| url_username | As for [ansible.builtin.uri]. |\n| url_password | As for [ansible.builtin.uri]. |\n| http_agent | As for [ansible.builtin.uri]. |\n| force_basic_auth | As for [ansible.builtin.uri]. |\n| follow_redirects | As for [ansible.builtin.uri]. |\n| client_cert | As for [ansible.builtin.uri]. |\n| client_key | As for [ansible.builtin.uri]. |\n\n### pulp_user\n\nCreate, update or delete a Pulp user.\n\n| Argument | Notes |\n| -------- | ----- |\n| login | Unique login for the user account. |\n| state | `absent` or `present`. |\n| name | A name for the user. |\n| password | Password for the account; if unset or blank, password is not managed. |\n| randomize_password | If `True`, a strong random password will be set. |\n\n### pulp_role\n\nCreate, update or delete a Pulp role.\n\n| Argument | Notes |\n| -------- | ----- |\n| id | Unique identifier for the role. |\n| state | `absent` or `present`. |\n| display_name | Arbitrary human-readable name for the role. |\n| description | Arbitrary human-readable description for the role. |\n| permissions | A resource =\u003e permission mapping associated with the role. |\n| users | List of users associated with the role; if omitted, users are not managed. |\n\n## Example\n\n```yaml\n- hosts: localhost\n\n  collections:\n   - release_engineering.pulp2_api\n\n  tasks:\n\n  # Create accounts for alice \u0026 bob.\n  - name: Ensure user\n    pulp_user:\n      pulp_url: \"https://pulp.example.com/pulp/api/v2\"\n      client_cert: pulpadmin.crt\n      client_key: pulpadmin.key\n      login: \"{{ item }}\"\n    loop: [\"bob\", \"alice\"]\n\n  # Ensure alice \u0026 bob can manipulate repositories \u0026 repo groups.\n  - name: Ensure role\n    pulp_role:\n      pulp_url: \"https://pulp.example.com/pulp/api/v2\"\n      client_cert: pulpadmin.crt\n      client_key: pulpadmin.key\n      id: repo-manager\n      permissions:\n         \"/v2/repositories\": [\"CREATE\", \"UPDATE\", \"EXECUTE\", \"DELETE\"]\n         \"/v2/repo_groups\": [\"CREATE\", \"UPDATE\", \"EXECUTE\", \"DELETE\"]\n      users: [\"bob\", \"alice\"]\n```\n\n## License\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\n[ansible.builtin.uri]: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/uri_module.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelease-engineering%2Fansible-pulp2-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelease-engineering%2Fansible-pulp2-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelease-engineering%2Fansible-pulp2-api/lists"}