Ansible playbook: Add a repository (apt repository)

From wikieduonline
Revision as of 11:28, 3 May 2020 by Welcome (talk | contribs) (→‎See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Advertising: