Ansible playbook: Add a repository (apt repository)

From wikieduonline
(Redirected from Add a repository)
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[edit]

Advertising: