Fix wrong tfvars path after restructure

This commit is contained in:
Khue Doan 2021-04-24 14:22:36 +07:00
parent 51a5468855
commit 4898d18202

View File

@ -38,7 +38,7 @@
# TODO (optimize) use template for tfvars
- name: Add LXD server to environment variables
lineinfile:
path: "{{ playbook_dir }}/../infra/platform/terraform.tfvars"
path: "{{ playbook_dir }}/../infra/terraform.tfvars"
line: "lxd_address = \"{{ hostvars[groups['metal'][0]]['ansible_host'] }}\""
create: yes
delegate_to: localhost
@ -46,7 +46,7 @@
- name: Add LXD password to environment variables
lineinfile:
path: "{{ playbook_dir }}/../infra/platform/terraform.tfvars"
path: "{{ playbook_dir }}/../infra/terraform.tfvars"
line: "lxd_password = \"{{ lxd_password }}\""
create: yes
delegate_to: localhost