community.general.pulp_repo – Add or remove Pulp repos from a remote host.¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.pulp_repo
.
Parameters¶
Notes¶
Note
This module can currently only create distributors and importers on rpm repositories. Contributions to support other repo types are welcome.
Examples¶
- name: Create a new repo with name 'my_repo'
community.general.pulp_repo:
name: my_repo
relative_url: my/repo
state: present
- name: Create a repo with a feed and a relative URL
community.general.pulp_repo:
name: my_centos_updates
repo_type: rpm
feed: http://mirror.centos.org/centos/6/updates/x86_64/
relative_url: centos/6/updates
url_username: admin
url_password: admin
force_basic_auth: yes
state: present
- name: Remove a repo from the pulp server
community.general.pulp_repo:
name: my_old_repo
repo_type: rpm
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
repo
string
|
success |
Name of the repo that the action was performed on.
Sample:
my_repo
|
Authors¶
Joe Adams (@sysadmind)