Update main.yml

This commit is contained in:
qiaofeng1227 2022-12-09 12:59:40 +08:00 committed by GitHub
parent 92498eaafe
commit f87e70f8d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,12 +20,14 @@
yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el7.noarch.rpm -y
when: ansible_os_family == "RedHat"
- name: Copy cockpit
copy: src=../cockpit dest=/tmp
- name: Install websoft9's plugins
shell: |
git clone --depth=1 https://github.com/Websoft9/StackHub.git
cp -r StackHub/cockpit/credential /usr/share/cockpit
cp -r StackHub/cockpit/phpmyadmin /usr/share/cockpit
cp -r StackHub/cockpit/nginxproxymanager /usr/share/cockpit
cp -r /tmp/cockpit/credential /usr/share/cockpit
cp -r /tmp/cockpit/phpmyadmin /usr/share/cockpit
cp -r /tmp/cockpit/nginxproxymanager /usr/share/cockpit
echo "UrlRoot=/panel" >> /etc/cockpit/cockpit.conf
systemctl restart cockpit