Serverspce 名前解決できるか確認するサンプル

環境
Serverspec
Ansible

構文
describe host(ホスト変数名) do
処理コード

操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
tthost = 'server.arkgame.com'
describe host(tthost) do
it { should be_resolvable.by('hosts') }
end
tthost = 'server.arkgame.com' describe host(tthost) do it { should be_resolvable.by('hosts') } end
tthost = 'server.arkgame.com'
describe host(tthost) do
  it { should be_resolvable.by('hosts') }
end

 

Ansible

Posted by arkgame