Update main.yml

This commit is contained in:
qiaofeng1227 2022-10-28 10:34:01 +08:00 committed by GitHub
parent a5ad2cfc68
commit ef1a6e583d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,13 +46,7 @@
- debug:
msg: "{% if mysql_install_result.msg is defined %} {{mysql_install_result.msg}} {% endif %}"
#3 Tool install
- name: Install tools
include_tasks: tools_{{item}}.yml
with_items: "{{common_install_tools}}"
when: common_install_tools is defined and common_install_tools is not none and common_install_tools != "" and common_install_tools[0]!= ""
#4 Configure
#3 Configure
- name: Create common folder
file:
path: '/data/{{item}}'
@ -73,9 +67,11 @@
- hostname:
name: "{{common_get_hostname.stdout}}"
#- name: Snap install yq
# shell: snap install yq
#4 Tool install
- name: Install tools
include_tasks: tools_{{item}}.yml
with_items: "{{common_install_tools}}"
when: common_install_tools is defined and common_install_tools is not none and common_install_tools != "" and common_install_tools[0]!= ""
# Softlink
- name: Create a symbolic link