2022-07-16 09:04:12 +08:00
|
|
|
- name: Install {{appname}}
|
|
|
|
include_tasks: tasks/install.yml
|
|
|
|
vars:
|
2022-10-25 14:44:02 +08:00
|
|
|
app: "runtime"
|
2022-10-28 14:06:47 +08:00
|
|
|
|
2022-10-28 14:07:29 +08:00
|
|
|
- name: Stop all of java runtime except java17
|
2022-11-01 09:27:59 +08:00
|
|
|
shell: docker stop java8 java11 java13 java14 java15 java18 java19
|
2022-10-28 14:06:47 +08:00
|
|
|
failed_when: False
|
2022-11-01 09:27:59 +08:00
|
|
|
|
|
|
|
- name: Install docker and navigator plugin of cockpit on ubuntu
|
|
|
|
shell: |
|
|
|
|
wget https://launchpad.net/ubuntu/+source/cockpit/215-1~ubuntu19.10.1/+build/18889196/+files/cockpit-docker_215-1~ubuntu19.10.1_all.deb
|
|
|
|
sudo dpkg -i cockpit-docker_215-1~ubuntu19.10.1_all.deb
|
|
|
|
wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator_0.5.10-1focal_all.deb
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt install -y ./cockpit-navigator_0.5.10-1focal_all.deb
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
|
|
|
|
- name: Install navigator plugin of cockpit on centos
|
|
|
|
shell: |
|
2022-11-01 14:15:40 +08:00
|
|
|
yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el7.noarch.rpm -y
|
2022-11-01 17:02:32 +08:00
|
|
|
when: ansible_os_family == "RedHat"
|
2022-11-01 16:03:04 +08:00
|
|
|
|
|
|
|
- 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
|
2022-11-06 21:13:12 +08:00
|
|
|
echo "UrlRoot=/panel" >> /etc/cockpit/cockpit.conf
|
|
|
|
systemctl restart cockpit
|
2022-11-02 18:05:51 +08:00
|
|
|
|
|
|
|
- name: Hide phpmyadmin's host
|
|
|
|
shell: |
|
|
|
|
sed -i "s/PMA_ARBITRARY=1/PMA_ARBITRARY=0/g" /data/apps/phpmyadmin/.env
|
2022-11-04 10:31:34 +08:00
|
|
|
sed -i "s/appname.example.com/appname.example.com\/phpmyadmin/g" /data/apps/phpmyadmin/.env
|
2022-11-02 18:05:51 +08:00
|
|
|
cd /data/apps/phpmyadmin && docker compose up -d
|