File tree 1 file changed +6
-2
lines changed
sftpbackupstorage/ansible
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 86
86
run_remote_command (command , host_post_info )
87
87
88
88
if distro in RPM_BASED_OS :
89
+ install_pkgs = 'openssh-clients qemu-img'
90
+ if releasever in ['ns10' ]:
91
+ install_pkgs = "nmap {}" .format (install_pkgs )
92
+
89
93
if zstack_repo != 'false' :
90
94
# name: install sftp backup storage related packages on RedHat based OS from local
91
- command = ("pkg_list=`rpm -q openssh-clients qemu-img | grep \" not installed\" | awk '{ print $2 }'` && for pkg"
92
- " in $pkg_list; do yum --disablerepo=* --enablerepo=%s install -y $pkg; done;" ) % (zstack_repo )
95
+ command = ("pkg_list=`rpm -q %s | grep \" not installed\" | awk '{ print $2 }'` && for pkg"
96
+ " in $pkg_list; do yum --disablerepo=* --enablerepo=%s install -y $pkg; done;" ) % (install_pkgs , zstack_repo )
93
97
run_remote_command (command , host_post_info )
94
98
else :
95
99
# name: install sftp backup storage related packages on RedHat based OS from online
You can’t perform that action at this time.
0 commit comments