mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #175 from mattupstate/apt_repository
Add apt_repository documentation
This commit is contained in:
commit
fc7591eeaa
1 changed files with 21 additions and 0 deletions
|
@ -70,6 +70,27 @@ Example action from Ansible :doc:`playbooks`::
|
||||||
apt pkg=nginx state=latest default-release=squeeze-backports update-cache=yes
|
apt pkg=nginx state=latest default-release=squeeze-backports update-cache=yes
|
||||||
apt pkg=openjdk-6-jdk state=latest install-recommends=no
|
apt pkg=openjdk-6-jdk state=latest install-recommends=no
|
||||||
|
|
||||||
|
|
||||||
|
.. _apt_repository:
|
||||||
|
|
||||||
|
apt_repository
|
||||||
|
```
|
||||||
|
|
||||||
|
Manages apt repositores
|
||||||
|
|
||||||
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
| parameter | required | default | comments |
|
||||||
|
+====================+==========+=========+============================================================================+
|
||||||
|
| repo | yes | | The repository name/value |
|
||||||
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
| state | no | present | 'absent' or 'present' |
|
||||||
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
|
||||||
|
Example action from Ansible :doc:`playbooks`::
|
||||||
|
|
||||||
|
apt_repository repo=ppa:nginx/stable
|
||||||
|
apt_repository repo='deb http://archive.canonical.com/ubuntu hardy partner'
|
||||||
|
|
||||||
.. _assemble:
|
.. _assemble:
|
||||||
|
|
||||||
assemble
|
assemble
|
||||||
|
|
Loading…
Reference in a new issue