1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Change example syntax on apt_repository module

This commit is contained in:
Sam Doran 2016-10-12 17:58:03 -04:00 committed by Matt Clay
parent b2ffded3a7
commit e4978ea98d

View file

@ -84,22 +84,36 @@ requirements:
EXAMPLES = '''
# Add specified repository into sources list.
apt_repository: repo='deb http://archive.canonical.com/ubuntu hardy partner' state=present
- apt_repository:
repo: 'deb http://archive.canonical.com/ubuntu hardy partner'
state: present
# Add specified repository into sources list using specified filename.
apt_repository: repo='deb http://dl.google.com/linux/chrome/deb/ stable main' state=present filename='google-chrome'
- apt_repository:
repo: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
state: present
filename: 'google-chrome'
# Add source repository into sources list.
apt_repository: repo='deb-src http://archive.canonical.com/ubuntu hardy partner' state=present
- apt_repository:
repo: 'deb-src http://archive.canonical.com/ubuntu hardy partner'
state: present
# Remove specified repository from sources list.
apt_repository: repo='deb http://archive.canonical.com/ubuntu hardy partner' state=absent
- apt_repository:
repo: 'deb http://archive.canonical.com/ubuntu hardy partner'
state: absent
# Add nginx stable repository from PPA and install its signing key.
# On Ubuntu target:
apt_repository: repo='ppa:nginx/stable'
- apt_repository:
repo: 'ppa:nginx/stable'
# On Debian target
apt_repository: repo='ppa:nginx/stable' codename='trusty'
- apt_repository:
repo: 'ppa:nginx/stable'
codename: 'trusty'
repo: 'ppa:nginx/stable'
'''
import glob