mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add a intg test for vault encrypted inventory (#18550)
This commit is contained in:
parent
81aa12eb1b
commit
25aa757e80
3 changed files with 16 additions and 0 deletions
|
@ -2,9 +2,12 @@
|
|||
|
||||
set -eux
|
||||
|
||||
|
||||
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --list-tasks
|
||||
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --list-hosts
|
||||
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --syntax-check
|
||||
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password
|
||||
ansible-playbook test_vault_embedded.yml -i ../../inventory -v "$@" --vault-password-file vault-password --syntax-check
|
||||
ansible-playbook test_vault_embedded.yml -i ../../inventory -v "$@" --vault-password-file vault-password
|
||||
ansible-playbook test_vaulted_inventory.yml -i vaulted.inventory -v "$@" --vault-password-file vault-password
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
- hosts: vaulted_host
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: See if we knew vaulted_host
|
||||
debug: msg="Found vaulted_host from vaulted.inventory"
|
8
test/integration/targets/vault/vaulted.inventory
Normal file
8
test/integration/targets/vault/vaulted.inventory
Normal file
|
@ -0,0 +1,8 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
62663838646564656432633932396339666332653932656230356332316530613665336461653731
|
||||
3839393466623734663861313636356530396434376462320a623966363661306334333639356263
|
||||
37366332626434326537353562636139333835613961333635633333313832666432396361393861
|
||||
3538626339636634360a396239383139646438323662383637663138646439306532613732306263
|
||||
64666237366334663931363462313131323861613237613337366562373532373537613531636334
|
||||
64653938333938313539653539303031393936306432623862363263663438653932643338373338
|
||||
633436626431656361633934363263303962
|
Loading…
Reference in a new issue