added rhel support
This commit is contained in:
@@ -7,15 +7,23 @@
|
||||
- install
|
||||
- add_config
|
||||
|
||||
- name: Install dependencies (Debian)
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- docker.io
|
||||
- docker-compose
|
||||
update_cache: yes
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
- name: Install dependencies (RHEL)
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: Install rproxy
|
||||
block:
|
||||
- name: Install dependencies
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- docker.io
|
||||
- docker-compose
|
||||
update_cache: yes
|
||||
|
||||
- name: Remove rproxy dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ rproxy_dir }}"
|
||||
|
||||
Reference in New Issue
Block a user