Ansible-Util
view release on metacpan or search on metacpan
lib/Ansible/Util/Vars.pm view on Meta::CPAN
=cut
has hosts => (
is => 'rw',
isa => 'Str',
default => 'localhost',
);
=head2 keepTempFiles
Keeps the generated tempfiles for debugging/troubleshooting. The tempfiles
used are a playbook, template, and json output.
=over
=item type: Bool
=item required: no
=item default: 0
t/31-util-vars-testset2.t view on Meta::CPAN
foreach my $file (@files) {
ok( -f $file );
}
cleanup( $dir, \@files );
}
sub doRuntimeException {
#
# test a runtime exception (files should be kept for debug)
# ...this one fails because it needs vault pass files.
#
my $vars = Ansible::Util::Vars->new( keepTempFiles => 0 );
ok( $vars->clearCache );
eval { $vars->getVars( ['states'] ); };
ok($@);
# ensure tempfile cleanup did NOT happen
my $dir = $vars->_tempDir;
t/ansible-test1/ansible.cfg view on Meta::CPAN
#special_context_filesystems=nfs,vboxsf,fuse,ramfs,9p
# Set this to yes to allow libvirt_lxc connections to work without SELinux.
#libvirt_lxc_noseclabel = yes
[colors]
#highlight = white
#verbose = blue
#warn = bright purple
#error = red
#debug = dark gray
#deprecate = purple
#skip = cyan
#unreachable = red
#ok = green
#changed = yellow
#diff_add = green
#diff_remove = red
#diff_lines = cyan
t/ansible-test1/dump.yml view on Meta::CPAN
# vim: tabstop=2 softtabstop=2 expandtab
---
- hosts: localhost
tasks:
- debug:
var: states
t/ansible-test2/ansible.cfg view on Meta::CPAN
#special_context_filesystems=nfs,vboxsf,fuse,ramfs,9p
# Set this to yes to allow libvirt_lxc connections to work without SELinux.
#libvirt_lxc_noseclabel = yes
[colors]
#highlight = white
#verbose = blue
#warn = bright purple
#error = red
#debug = dark gray
#deprecate = purple
#skip = cyan
#unreachable = red
#ok = green
#changed = yellow
#diff_add = green
#diff_remove = red
#diff_lines = cyan
t/ansible-test2/dump.yml view on Meta::CPAN
# vim: tabstop=2 softtabstop=2 expandtab
---
- hosts: localhost
tasks:
- debug:
var: states
( run in 0.314 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )