ansible-role-docker/tasks/main.yml

21 lines
596 B
YAML
Raw Normal View History

2020-08-06 16:45:47 +02:00
---
2020-08-11 20:01:36 +02:00
- name: Create the docker user
user: name=docker comment="Docker User" shell=/bin/bash home={{ docker_user_home }} system=yes
when: docker_run_as_docker_user
- import_tasks: deb_pkgs.yml
when: ansible_distribution_file_variety == "Debian"
- import_tasks: el_pkgs.yml
when: ansible_distribution_file_variety == "RedHat"
- import_tasks: docker_setup.yml
2023-05-29 13:38:35 +02:00
- name: Import the cAdvisor tasks
ansible.builtin.import_tasks: cadvisor.yml
when: docker_swarm_cluster_cadvisor_install
2020-08-11 20:01:36 +02:00
- import_tasks: swarm_mgr.yml
2020-10-15 13:54:20 +02:00
when: docker_swarm
2020-08-11 20:01:36 +02:00
- import_tasks: swarm_node.yml
2020-10-15 13:54:20 +02:00
when: docker_swarm