Merge pull request 'dev' (#9) from dev into master

Reviewed-on: http://89.110.105.223:8080/IaC/rproxy/pulls/9
This commit is contained in:
2024-09-27 23:26:40 +03:00
2 changed files with 28 additions and 8 deletions

View File

@@ -3,4 +3,4 @@ hostfile = hosts.ini
log_path = ansible-log.log log_path = ansible-log.log
host_key_checking = false host_key_checking = false
interpreter_python = /usr/bin/python3 interpreter_python = /usr/bin/python3
forks = 30 forks = 30

View File

@@ -7,15 +7,35 @@
- install - install
- add_config - add_config
- name: Install docker (Debian)
ansible.builtin.apt:
name:
- docker.io
- docker-compose
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 - name: Install rproxy
block: block:
- name: Install dependencies
ansible.builtin.apt:
name:
- docker.io
- docker-compose
update_cache: yes
- name: Remove rproxy dir - name: Remove rproxy dir
ansible.builtin.file: ansible.builtin.file:
path: "{{ rproxy_dir }}" path: "{{ rproxy_dir }}"