、サービスモジュール:リモートホスト上の「サービス」モジュールを使用すると、どのinitシステムが実行されているかをどのように知ることができますか? <a href="http://docs.ansible.com/ansible/service_module.html" rel="noreferrer">the Ansible documentation</a>から
コントロールサービス。サポートされている初期化システムには、BSD init、OpenRC、SysV、Solaris SMF、systemd、upstartなどがあります。
特定のマシンでは、どのようなinitシステムを使用しているのかをどのように知ることができますか?例えば、システムにはinitとsystemdがあります。
私はそれは良い考えではないと思う。私のUbuntu 14サーバーでは、systemdがインストールされていますが、initには使用されていません。その結果、AnsibleはUpstart(システムで宣言されたサービスマネージャー)の代わりにSystemdを使用しようとします。 –