Skip to content

Commit bc7305b

Browse files
committed
Renaming deploy_vars_post_roles to deploy_vars_pre_roles to better match it's function
1 parent 68bb67d commit bc7305b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

nova/core/roles/deploy_vars/defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ datacenter_location: {} # Required when deploying to vSphere
1717
main_id: "{{ inventory_hostname }}" # For when using local inventory, main_id is a Providentia specific variable
1818
save_secrets_to_vault: false # Set to true to save accounts to vault, required a running HashiCorp Vault server with LDAP auth enabled
1919
gt_username: gt # Default non-root/Administrator username for deployment
20-
deploy_vars_post_roles: [] # List of roles to include after credentials facts have been set
20+
deploy_vars_pre_roles: "{{ deploy_vars_post_roles }}" # List of roles to include as the very first step of the deploy
21+
deploy_vars_post_roles: [] # DEPRECATED
2122
immutable: false # Set to true to stop running any role on the host or group
2223

2324
# Defaulting to ansible_password when password is required for sudo

nova/core/roles/deploy_vars/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
- name: Including following post-deploy_vars roles...
1111
ansible.builtin.include_role:
1212
name: "{{ item }}"
13-
loop: "{{ deploy_vars_post_roles }}"
14-
when: deploy_vars_post_roles != []
13+
loop: "{{ deploy_vars_pre_roles }}"
14+
when: deploy_vars_pre_roles != []
1515

1616
- name: Delegating required tasks to localhost...
1717
delegate_to: localhost

0 commit comments

Comments
 (0)