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:
parent
b2ffded3a7
commit
e4978ea98d
1 changed files with 20 additions and 6 deletions
|
@ -84,22 +84,36 @@ requirements:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Add specified repository into sources list.
|
# 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.
|
# 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.
|
# 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.
|
# 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.
|
# Add nginx stable repository from PPA and install its signing key.
|
||||||
# On Ubuntu target:
|
# On Ubuntu target:
|
||||||
apt_repository: repo='ppa:nginx/stable'
|
- apt_repository:
|
||||||
|
repo: 'ppa:nginx/stable'
|
||||||
|
|
||||||
# On Debian target
|
# 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
|
import glob
|
||||||
|
|
Loading…
Reference in a new issue