Difference between revisions of "Ansible playbook: Add a repository (apt repository)"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Ref: https://docs.ansible.com/ansible/latest/modules/apt_repository_module.html
 
Ref: https://docs.ansible.com/ansible/latest/modules/apt_repository_module.html
 +
 
<pre>
 
<pre>
 
- name: Add docker repository to Ubuntu
 
- name: Add docker repository to Ubuntu
Line 9: Line 10:
  
 
== See also ==
 
== See also ==
 +
* {{Ansible modules}}
 
* {{Ansible}}
 
* {{Ansible}}
 
* {{Package managers}}
 
* {{Package managers}}

Latest revision as of 11:28, 3 May 2020

Ref: https://docs.ansible.com/ansible/latest/modules/apt_repository_module.html

- name: Add docker repository to Ubuntu
  apt_repository:
    repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ubuntu_distribution_release}} stable
    state: present


See also[edit]

Advertising: