差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:alpine_semaphore [2023/12/29 18:11] – 常見問題 jonathantech:alpine_semaphore [2024/04/07 22:10] (目前版本) – [常見問題] 目標主機未安裝 python 議題 jonathan
行 21: 行 21:
     image: semaphoreui/semaphore:latest     image: semaphoreui/semaphore:latest
     environment:     environment:
 +      TZ: Asia/Taipei
       SEMAPHORE_DB_USER: semaphore       SEMAPHORE_DB_USER: semaphore
       SEMAPHORE_DB_PASS: semaphore       SEMAPHORE_DB_PASS: semaphore
行 58: 行 59:
   - 針對 ssh 第一次登入出現失敗問題解法   - 針對 ssh 第一次登入出現失敗問題解法
     * 參考 - https://github.com/ansible-semaphore/semaphore/issues/675     * 參考 - https://github.com/ansible-semaphore/semaphore/issues/675
-    * 可以在 inventory 設定時加上以下的段落 <file>+    * 可以在 Environment 內的 Extra variables 內加入 <file> 
 +{"ansible_ssh_common_args":"'-o StrictHostKeyChecking=no'"
 +</file> 
 +    * 或是在 inventory 設定時加上以下的段落 <file>
 [all:vars] [all:vars]
 ansible_ssh_common_args='-o StrictHostKeyChecking=no' ansible_ssh_common_args='-o StrictHostKeyChecking=no'
 : :
 </file> </file>
 +  - 針對無法 sudo 的議題 workaround 方式
 +    * 參考 - https://github.com/ansible-semaphore/semaphore/issues/1518
 +    * 在目前 v2.9.37 版本會將 playbook 內的 become: yes 跳過, 造成無法 sudo 的議題
 +    * Workaround 的方式就是
 +      - Key Store 建立一個只有密碼但無帳號的 login with password Exp. rkeuser-none 和有帳號密碼的 rkeuser 共同使用 \\ {{:tech:2024-01-02_104611.png?600|}}
 +      - Inventory 中 User Credentials 選有帳號密碼的 Key, Sudo Credentials 選無帳號的 Key \\ {{:tech:2024-01-02_104933.png?600|}}
 +  - 對於 task 無法 UI 找到刪除的問題
 +    * 參考 - https://github.com/ansible-semaphore/semaphore/issues/1101
 +    * 在目前 v2.9.37 版本, UI 還未提供這樣的功能, 所以必須透過 API 或改 DB 方式來解決
 +    * API Swagger - https://www.semui.co/api-docs/ 
 +    * [[tech/alpine_semaphore/api]]
 +    * [[tech/alpine_semaphore/db]]
 +  - 刪除或編輯 template 的 UI 
 +    * 之前沒看到, 突然 UI 出現可以刪除或編輯 template 功能 \\ {{:tech:2024-01-02_195145.png?600|}} \\ {{:tech:2024-01-02_195212.png?600|}}
 +  - 執行時 log 內出現 failed_modules: ansible.legacy.setup: ansible_facts: discovered_interpreter_python: /usr/bin/python, failed: true 
 +    * 表示目標主機內可能未安裝 python, 需要先手動進行安裝 Exp. Alpine 目標主機<cli>apk add python3</cli> 
  
 ===== 參考網址 ===== ===== 參考網址 =====
   * https://www.youtube.com/watch?v=kP8Oda17k7Q   * https://www.youtube.com/watch?v=kP8Oda17k7Q
   * https://docs.semui.co/administration-guide/installation#docker   * https://docs.semui.co/administration-guide/installation#docker
 +  * https://github.com/semaphoreui/semaphore
  
-{{tag>ansible alpine docker}}+{{tag>ansible Semaphore alpine docker}}
  
  • tech/alpine_semaphore.1703844677.txt.gz
  • 上一次變更: 2023/12/29 18:11
  • jonathan