Ansible-Util
view release on metacpan or search on metacpan
lib/Ansible/Util/Roles/Constants.pm view on Meta::CPAN
Ansible::Util::Roles::Constants
=head1 VERSION
version 0.001
=cut
use constant {
ARGS_VAULT_PASS_FILE => '--vault-password-file',
CACHE_NS_VARS => 'ansible-vars',
CACHE_KEY => 'default',
CMD_ANSIBLE_PLAYBOOK => 'ansible-playbook',
DEFAULT_CACHE_EXPIRE_SECS => 60 * 10, # 10 mins
};
1;
lib/Ansible/Util/Run.pm view on Meta::CPAN
with 'Ansible::Util::Roles::Constants';
##############################################################################
# PUBLIC ATTRIBUTES
##############################################################################
=head1 ATTRIBUTES
=head2 vaultPasswordFiles
A list of vault-password-files to pass to the command line.
=over
=item type: ArrayRef[Str]
=item required: no
=back
=cut
lib/Ansible/Util/Vars.pm view on Meta::CPAN
with 'Ansible::Util::Roles::Constants';
##############################################################################
# PUBLIC ATTRIBUTES
##############################################################################
=head1 ATTRIBUTES
=head2 vaultPasswordFiles
A list of vault-password-files to pass to the command line.
=over
=item type: ArrayRef[Str]
=item required: no
=back
=cut
t/21-util-run-testset2.t view on Meta::CPAN
SKIP: {
skip "ansible-playbook executable not found"
unless $Test2->ansiblePlaybookExeExists;
$Test2->chdir;
eval {
my ( $stdout, $stderr, $exit ) =
$run->ansiblePlaybook( playbook => 'dump.yml' );
};
ok($@); # no vault password files found
$run->vaultPasswordFiles( $Test2->vaultPasswordFiles );
eval {
my ( $stdout, $stderr, $exit ) =
$run->ansiblePlaybook( playbook => 'dump.yml' );
};
ok( !$@ );
};
t/ansible-test1/ansible.cfg view on Meta::CPAN
# tasks and handlers within the role will see the variables there
#private_role_vars = yes
# list any Jinja2 extensions to enable here:
#jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
# if set, always use this private key file for authentication, same as
# if passing --private-key to ansible or ansible-playbook
#private_key_file = /path/to/file
# If set, configures the path to the Vault password file as an alternative to
# specifying --vault-password-file on the command line.
#vault_password_file = /path/to/vault_password_file
# format of string {{ ansible_managed }} available within Jinja2
# templates indicates to users editing templates files will be replaced.
# replacing {file}, {host} and {uid} and strftime codes with proper values.
#ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
# {file}, {host}, {uid}, and the timestamp can all interfere with idempotence
# in some situations so the default is a static string:
#ansible_managed = Ansible managed
# by default, ansible-playbook will display "Skipping [host]" if it determines a task
t/ansible-test2/Makefile view on Meta::CPAN
decrypt-vault-files:
ansible-vault decrypt group_vars/all/vault-ia.yml --vault-password-file vault-pass-ia.txt
ansible-vault decrypt group_vars/all/vault-tx.yml --vault-password-file vault-pass-tx.txt
encrypt-vault-files:
ansible-vault encrypt group_vars/all/vault-ia.yml --vault-password-file vault-pass-ia.txt
ansible-vault encrypt group_vars/all/vault-tx.yml --vault-password-file vault-pass-tx.txt
dump-vars:
ansible-playbook dump.yml --vault-password-file vault-pass-ia.txt --vault-password-file vault-pass-tx.txt
t/ansible-test2/ansible.cfg view on Meta::CPAN
# tasks and handlers within the role will see the variables there
#private_role_vars = yes
# list any Jinja2 extensions to enable here:
#jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
# if set, always use this private key file for authentication, same as
# if passing --private-key to ansible or ansible-playbook
#private_key_file = /path/to/file
# If set, configures the path to the Vault password file as an alternative to
# specifying --vault-password-file on the command line.
#vault_password_file = /path/to/vault_password_file
# format of string {{ ansible_managed }} available within Jinja2
# templates indicates to users editing templates files will be replaced.
# replacing {file}, {host} and {uid} and strftime codes with proper values.
#ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
# {file}, {host}, {uid}, and the timestamp can all interfere with idempotence
# in some situations so the default is a static string:
#ansible_managed = Ansible managed
# by default, ansible-playbook will display "Skipping [host]" if it determines a task
( run in 0.532 second using v1.01-cache-2.11-cpan-49f99fa48dc )