This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
сервис_ansible [2022/03/18 18:29] val [Использование ролей] |
сервис_ansible [2022/05/26 15:46] val [Пример 1] |
||
---|---|---|---|
Line 143: | Line 143: | ||
- name: Add Docker's official GPG key | - name: Add Docker's official GPG key | ||
apt_key: | apt_key: | ||
- | url: https://download.docker.com/linux/debian/gpg | + | # url: https://download.docker.com/linux/debian/gpg |
+ | # url: https://download.docker.com/linux/ubuntu/gpg | ||
state: present | state: present | ||
- name: Add Docker's repository into sources list | - name: Add Docker's repository into sources list | ||
apt_repository: | apt_repository: | ||
# repo: deb [arch=amd64] https://download.docker.com/linux/debian buster stable | # repo: deb [arch=amd64] https://download.docker.com/linux/debian buster stable | ||
- | repo: deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable | + | # repo: deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable |
+ | # repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable | ||
state: present | state: present | ||
- name: Install Docker | - name: Install Docker | ||
- | apt: pkg=docker-ce state=present update_cache=true | + | apt: |
+ | pkg: | ||
+ | - docker-ce | ||
+ | - docker-ce-cli | ||
+ | - containerd.io | ||
+ | - docker-compose-plugin | ||
+ | state: present | ||
+ | update_cache: true | ||
</code><code> | </code><code> | ||
gate# ansible-playbook provision_docker.yml | gate# ansible-playbook provision_docker.yml |