Browse Source

Update main.yml

qiaofeng1227 2 years ago
parent
commit
90dd126f2a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      apps/roles/fastpanel/tasks/main.yml

+ 4 - 1
apps/roles/fastpanel/tasks/main.yml

@@ -4,7 +4,10 @@
     state: directory
     
 - name: Install {{appname}}
-  shell: wget http://repo.fastpanel.direct/install_fastpanel.sh -O - | bash -  > /credentials/password.txt 2>&1
+  shell: |
+    wget http://repo.fastpanel.direct/install_fastpanel.sh -O - | bash -  > /credentials/tmp 2>&1
+    grep "Login"  /credentials/tmp >> /credentials/password.txt
+    grep "Password" /credentials/tmp >> /credentials/password.txt
 
 - name: Output version
   shell: echo "fastpanel version refer to https://fastpanel.direct/changelog" >> /data/logs/install_version.txt