require 'serverspec' set :backend, :exec puts puts '================================' puts %x(ansible --version) puts '================================' describe file('/etc/ssl/dh4096.pem') do it { should be_file } it { should be_mode 640 } it { should be_owned_by 'root' } it { should be_grouped_into 'www-data' } end