ansible-role-docker/tasks/main.yml

18 lines
471 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
- 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