mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
Revise docker ansible script
- use include/import_tasks instead of the deprecated include. Used include_tasks for nginx tasks because they might cause problems due to depending on the nginxConfig variable inside the conditional statements. Used import_tasks for docker tasks since they seem like they can be safely pre-processed. - remove task installing docker module for python
This commit is contained in:
committed by
Dan Christian Bogos
parent
d8059908eb
commit
5e0b90ffa7
@@ -37,9 +37,6 @@
|
||||
enabled: yes
|
||||
masked: no
|
||||
|
||||
- name: Install Docker Module for Python
|
||||
shell: "pip3 install docker"
|
||||
|
||||
- name: Creates directory
|
||||
become: yes
|
||||
file:
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
register: nginxConfig
|
||||
|
||||
- name: Configure NGINX server
|
||||
include: nginx.yaml
|
||||
include_tasks: nginx.yaml
|
||||
when: nginxConfig.stdout_lines|length < 1 or users_filename|length > 0
|
||||
|
||||
- name: Enable and start nginx
|
||||
@@ -68,7 +68,7 @@
|
||||
enabled: yes
|
||||
|
||||
- name: Configure docker
|
||||
include: docker.yaml
|
||||
import_tasks: docker.yaml
|
||||
|
||||
###########################################################################################################################
|
||||
###########################################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user