diff options
author | Sam Doran <sdoran@ansible.com> | 2016-10-12 17:58:03 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2016-11-15 14:23:35 -0500 |
commit | aa18bf8933e58b16a81b53bd694a0a156eaf82c1 (patch) | |
tree | dc7c0f0352dad433c740e5b4cb468f5ea4def420 | |
parent | 5995bf27bab36f25d4179401be436a30f02adaf9 (diff) | |
download | ansible-modules-core-aa18bf8933e58b16a81b53bd694a0a156eaf82c1.tar.gz |
Change example syntax on apt_repository module
-rw-r--r-- | packaging/os/apt_repository.py | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/packaging/os/apt_repository.py b/packaging/os/apt_repository.py index dac098da..aedf1cb2 100644 --- a/packaging/os/apt_repository.py +++ b/packaging/os/apt_repository.py @@ -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 |