ansible-role-docker/tasks/main.yml

21 lines
596 B
YAML

---
- 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
- name: Import the cAdvisor tasks
ansible.builtin.import_tasks: cadvisor.yml
when: docker_swarm_cluster_cadvisor_install
- import_tasks: swarm_mgr.yml
when: docker_swarm
- import_tasks: swarm_node.yml
when: docker_swarm