Quantcast
Channel: 不自量力 の Weithenn
Viewing all articles
Browse latest Browse all 590

Failed to start poweroff connection timed out

$
0
0


Question: Failed to start poweroff.target:  Connection timed out

執行 Playbook 內容為「systemctl poweroff」,但是結果卻是失敗並顯示下列錯誤訊息?

Failed to start poweroff.target:  Connection timed out



Answer:

簡單來說,針對 CentOS 7 主機,無論是 Reboot 或 Poweroff 在 Playbook 中都必須搭配「async 和 poll」,否則便會出現上述錯誤訊息。請參考下列相關文章內容即可知原因:


將 Playbook 內容改為如下即可順利執行:




Viewing all articles
Browse latest Browse all 590

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>