Merge branch 'pr_fix2' of https://github.com/carlanton/ansible into carlanton-pr_fix2

This commit is contained in:
James Cammarata 2014-06-10 10:05:00 -05:00
commit 3abcfee681
5 changed files with 42 additions and 15 deletions

View file

@ -14,7 +14,9 @@ else
CREDENTIALS_ARG =
endif
all: non_destructive destructive check_mode test_hash test_handlers test_group_by
VAULT_PASSWORD_FILE = vault-password
all: non_destructive destructive check_mode test_hash test_handlers test_group_by test_var_in_vault
non_destructive:
ansible-playbook non_destructive.yml -i $(INVENTORY) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)
@ -38,6 +40,10 @@ test_hash:
test_var_precedence:
ansible-playbook test_var_precedence.yml -i $(INVENTORY) $(CREDENTIALS_ARG) -v -e 'extra_var=extra_var'
test_var_in_vault:
ansible-playbook test_var_in_vault.yml -i $(INVENTORY) $(CREDENTIALS_ARG) -v $(TEST_FLAGS) --vault-password-file $(VAULT_PASSWORD_FILE) --list-tasks
ansible-playbook test_var_in_vault.yml -i $(INVENTORY) $(CREDENTIALS_ARG) -v $(TEST_FLAGS) --vault-password-file $(VAULT_PASSWORD_FILE)
cloud: amazon rackspace
cloud_cleanup: amazon_cleanup rackspace_cleanup

View file

@ -0,0 +1,11 @@
- hosts: testhost
vars_files:
- vars/test_var_encrypted.yml
gather_facts: False
tasks:
- assert:
that:
- 'secret_var == "secret"'

View file

@ -0,0 +1,6 @@
$ANSIBLE_VAULT;1.1;AES256
66316432306130656439343231643731643637663362643633316161663034353135333661393064
3533653862643531613737323332393862396430396633610a363330646130373966393830623738
33616137323034333830663164326666613839366533326531396636323030636435393866613437
3634386461363430310a333330326166626363393039363739363730366234393634333431346436
33323132373035663965306166313761343432303962623962323531653934616130

View file

@ -0,0 +1 @@
test-vault-password