doc: replace yumrepo with yum_repository

pull/18777/head
Rene Moser 9 years ago committed by Matt Clay
parent 84259eb2d6
commit e9667eb542

@ -25,7 +25,7 @@ import os
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: yumrepo module: yum_repository
author: Jiri Tyr (@jtyr) author: Jiri Tyr (@jtyr)
version_added: '2.0' version_added: '2.0'
short_description: Add and remove YUM repositories short_description: Add and remove YUM repositories
@ -302,20 +302,20 @@ notes:
EXAMPLES = ''' EXAMPLES = '''
- name: Add repository - name: Add repository
yumrepo: yum_repository:
name: epel name: epel
description: EPEL YUM repo description: EPEL YUM repo
baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/ baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/
- name: Add multiple repositories into the same file (1/2) - name: Add multiple repositories into the same file (1/2)
yumrepo: yum_repository:
name: epel name: epel
description: EPEL YUM repo description: EPEL YUM repo
file: external_repos file: external_repos
baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/ baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/
gpgcheck: no gpgcheck: no
- name: Add multiple repositories into the same file (2/2) - name: Add multiple repositories into the same file (2/2)
yumrepo: yum_repository:
name: rpmforge name: rpmforge
description: RPMforge YUM repo description: RPMforge YUM repo
file: external_repos file: external_repos
@ -324,18 +324,18 @@ EXAMPLES = '''
enabled: no enabled: no
- name: Remove repository - name: Remove repository
yumrepo: yum_repository:
name: epel name: epel
state: absent state: absent
- name: Remove repository from a specific repo file - name: Remove repository from a specific repo file
yumrepo: yum_repository:
name: epel name: epel
file: external_repos file: external_repos
state: absent state: absent
# #
# Allow to overwrite the yumrepo parameters by defining the parameters # Allow to overwrite the yum_repository parameters by defining the parameters
# as a variable in the defaults or vars file: # as a variable in the defaults or vars file:
# #
# my_role_somerepo_params: # my_role_somerepo_params:
@ -345,7 +345,7 @@ EXAMPLES = '''
# gpgkey: null # gpgkey: null
# #
- name: Add Some repo - name: Add Some repo
yumrepo: yum_repository:
name: somerepo name: somerepo
description: Some YUM repo description: Some YUM repo
baseurl: http://server.com/path/to/the/repo baseurl: http://server.com/path/to/the/repo

Loading…
Cancel
Save