dev #9
@@ -7,15 +7,35 @@
|
|||||||
- install
|
- install
|
||||||
- add_config
|
- add_config
|
||||||
|
|
||||||
- name: Install rproxy
|
- name: Install docker (Debian)
|
||||||
block:
|
|
||||||
- name: Install dependencies
|
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- docker.io
|
- docker.io
|
||||||
- docker-compose
|
- docker-compose
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
tags: install
|
||||||
|
|
||||||
|
- name: Install dependencies RHEL
|
||||||
|
block:
|
||||||
|
- name: Install docker (RHEL)
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name:
|
||||||
|
- docker
|
||||||
|
- docker-compose
|
||||||
|
when: ansible_facts['os_family'] == "RedHat"
|
||||||
|
|
||||||
|
- name: Enable docker (RHEL)
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: docker
|
||||||
|
state: restarted
|
||||||
|
enabled: true
|
||||||
|
daemon_reload: true
|
||||||
|
when: ansible_facts['os_family'] == "RedHat"
|
||||||
|
tags: install
|
||||||
|
|
||||||
|
- name: Install rproxy
|
||||||
|
block:
|
||||||
- name: Remove rproxy dir
|
- name: Remove rproxy dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ rproxy_dir }}"
|
path: "{{ rproxy_dir }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user