Merge pull request #1762 from resmo/fix/yum_repository

rename yumrepo to yum_repository for consistency
This commit is contained in:
Brian Coca 2016-02-29 23:23:10 -05:00
commit ce67af5014

View file

@ -25,7 +25,7 @@ import os
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: yumrepo module: yum_repository
author: Jiri Tyr (@jtyr) author: Jiri Tyr (@jtyr)
version_added: '2.1' version_added: '2.1'
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