32 lines
No EOL
668 B
YAML
32 lines
No EOL
668 B
YAML
---
|
|
- name: set mydistribution
|
|
ansible.builtin.set_fact:
|
|
mydistribution: "{{ ansible_distribution | lower }}"
|
|
|
|
- ansible.builtin.import_tasks: fedora.yml
|
|
name: base
|
|
become: true
|
|
when: mydistribution == "fedora"
|
|
|
|
- ansible.builtin.import_tasks: debian.yml
|
|
name: base
|
|
become: true
|
|
when: mydistribution == "debian"
|
|
|
|
- name: Start Docker
|
|
ansible.builtin.service:
|
|
name: "docker"
|
|
enabled: true
|
|
state: started
|
|
|
|
- name: Create proxy network
|
|
community.docker.docker_network:
|
|
name: proxy
|
|
state: present
|
|
become: true
|
|
|
|
- name: Create metrics network
|
|
community.docker.docker_network:
|
|
name: metrics
|
|
state: present
|
|
become: true |