File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ - name : Assert secrets created
2
+ assert :
3
+ that : (hostvars[inventory_hostname].keys() | select('contains', 'vault_') | length) > 1 # 1 as may have vault_testuser_password defined in dev
4
+ fail_msg : " No inventory variables 'vault_*' found: Has ansible/adhoc/generate-passwords.yml been run"
Original file line number Diff line number Diff line change 9
9
when : hook_path | exists
10
10
11
11
- import_playbook : validate.yml
12
- when : " {{ appliances_validate | default(true) }} "
12
+ when : appliances_validate | default(true)
13
13
14
14
- import_playbook : bootstrap.yml
15
15
Original file line number Diff line number Diff line change 2
2
3
3
# Fail early if configuration is invalid
4
4
5
+ - name : Validate secrets created
6
+ hosts : localhost
7
+ gather_facts : false
8
+ tasks :
9
+ - import_role :
10
+ name : passwords
11
+ tasks_from : validate.yml
12
+
5
13
- name : Ensure control node is in inventory
6
14
hosts : all
7
15
gather_facts : false
You can’t perform that action at this time.
0 commit comments