2022-06-13 00:32:32 +02:00
|
|
|
- name: 'Add Docker repo'
|
|
|
|
get_url:
|
|
|
|
url: 'https://download.docker.com/linux/centos/docker-ce.repo'
|
|
|
|
dest: '/etc/yum.repos.d/docker-ce.repo'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: 'Upgrade all packages'
|
|
|
|
dnf:
|
|
|
|
name: '*'
|
|
|
|
state: 'latest'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: 'Install Docker engine basics'
|
|
|
|
ansible.builtin.dnf:
|
|
|
|
name:
|
2022-07-06 01:11:22 +02:00
|
|
|
- 'docker-ce' # Docker
|
|
|
|
- 'docker-ce-cli' #
|
|
|
|
- 'containerd.io' #
|
|
|
|
- 'docker-compose-plugin' #
|
|
|
|
- 'git' # git clone Mailcow repo
|
2022-06-13 00:32:32 +02:00
|
|
|
state: 'latest'
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-07 03:12:32 +02:00
|
|
|
- name: 'Install Miniconda'
|
|
|
|
tags:
|
2022-07-08 03:18:56 +02:00
|
|
|
- 'testing'
|
2022-07-07 03:12:32 +02:00
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: '10-include-50-miniconda'
|
2022-07-08 03:18:56 +02:00
|
|
|
# tasks_from: '40-install-miniconda'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#- name: 'Set up Miniconda env'
|
|
|
|
# tags:
|
|
|
|
# - 'testing'
|
|
|
|
# loop_control:
|
|
|
|
# loop_var: 'conda'
|
|
|
|
# loop:
|
|
|
|
# - { env_name: 'cookiecutter', python_version: '3', package_spec: 'pip' }
|
|
|
|
# - { env_name: 'update-firewall-source', python_version: '3', package_spec: 'pip' }
|
|
|
|
# vars:
|
|
|
|
# env_name: '{{ conda.env_name }}'
|
|
|
|
# python_version: '{{ conda.python_version }}'
|
|
|
|
# package_spec: '{{ conda.package_spec }}'
|
|
|
|
# ansible.builtin.include_role:
|
|
|
|
# name: '10-include-50-miniconda'
|
|
|
|
#
|
2022-07-06 01:11:22 +02:00
|
|
|
|
|
|
|
|
2022-06-13 00:32:32 +02:00
|
|
|
- name: 'Populate service facts'
|
|
|
|
ansible.builtin.service_facts:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: 'Store Docker daemon.json'
|
|
|
|
register: 'rv_upload_daemonjson'
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: 'etc/docker/daemon.json'
|
|
|
|
dest: '/etc/docker/daemon.json'
|
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
|
|
|
mode: '0644'
|
|
|
|
notify:
|
|
|
|
- 'If running restart systemd docker.service'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: 'Start systemd docker.service'
|
|
|
|
when: '(ansible_facts.services[''docker.service''].state != ''running'')'
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: 'docker.service'
|
|
|
|
state: 'started'
|
|
|
|
enabled: 'yes'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# - name: 'Get Mailcow docker-compose repo'
|
|
|
|
# ansible.builtin.git:
|
|
|
|
# repo: 'git@quico.space:Quico/containers.git'
|
|
|
|
# dest: '/opt/git/git/quico.space/Quico/containers/branches/master'
|