DevOps/Ansible/Add a repository

From Wikiversity
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 | edit source]