Ansible-Util
view release on metacpan or search on metacpan
lib/Ansible/Util/Vars.pm view on Meta::CPAN
=back
=cut
has cacheEnabled => (
is => 'rw',
isa => 'Bool',
default => 1,
writer => '_setCacheEnabled',
);
=head2 cacheExpireSecs
Controls how long to hold onto cached data.
=over
=item type: Int
=item required: no
=item default: 10 min
=back
=cut
has cacheExpireSecs => (
is => 'rw',
isa => 'Int',
default => sub { DEFAULT_CACHE_EXPIRE_SECS() },
);
=head2 hosts
Choose which managed nodes or groups you want to execute against. This format
of this is exactly the same as defined in "Patterns: targeting hosts and groups"
by the Ansible documentation.
=over
=item type: Str
=item required: no
=item default: localhost
=back
=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
=back
=cut
has keepTempFiles => (
is => 'rw',
isa => 'Bool',
default => 0,
);
=head2 keepTempFilesOnError
This is a toggle to keep the generated tempfiles when Ansible exits with an
error.
=over
=item type: Bool
=item required: no
=item default: 0
=back
=cut
has keepTempFilesOnError => (
is => 'rw',
isa => 'Bool',
default => 1,
);
##############################################################################
# PRIVATE_ATTRIBUTES
##############################################################################
has _exitDueToAnsibleError => (
is => 'rw',
isa => 'Bool',
default => 0,
);
has _tempDir => (
is => 'rw',
isa => 'Str',
lazy => 1,
builder => '_buildTempDir',
predicate => '_hasTempDir',
clearer => '_clearTempDir',
( run in 1.290 second using v1.01-cache-2.11-cpan-39bf76dae61 )