Skip to content

Commit

Permalink
Pass Azimuth update reason to the Infra role (#31)
Browse files Browse the repository at this point in the history
* Include vars when calling infra

* Change conditonal name

* Use boolean instead

* Bump Terraform collection
  • Loading branch information
assumptionsandg authored Nov 12, 2024
1 parent ae834d9 commit 78d0004
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
collections:
- name: https://github.com/azimuth-cloud/ansible-collection-terraform
type: git
version: 0.4.0
version: 0.5.0
- name: openstack.cloud
version: 1.8.0
- name: ansible.posix # for mount module
Expand Down
2 changes: 2 additions & 0 deletions roles/cluster_infra/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ cluster_ssh_user: ubuntu

ansible_init_collections: []
ansible_init_playbooks: []

azimuth_update_reason: reconfigure
2 changes: 2 additions & 0 deletions roles/cluster_infra/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@
- name: Provision infrastructure
include_role:
name: azimuth_cloud.terraform.infra
vars:
terraform_rebuild_nodes: "{{ azimuth_update_reason == 'patch' }}"

0 comments on commit 78d0004

Please sign in to comment.