@@ -123,7 +123,7 @@ resource "terraform_data" "execute_playbooks" {
123123 provisioner "remote-exec" {
124124 inline = [
125125 " if [ -f \" /root/.powervs/config.json\" ]; then" ,
126- " if ! ( head -n 1 | grep -q '^\\ $ANSIBLE_VAULT' ); then" ,
126+ " if ! ( head -n 1 /root/.powervs/config.json | grep -q '^$ANSIBLE_VAULT' ); then" ,
127127 " echo ${ var . ansible_vault_password } > password_file" ,
128128 " ansible-vault decrypt /root/.powervs/config.json --vault-password-file password_file" ,
129129 " fi" ,
@@ -150,7 +150,7 @@ resource "terraform_data" "execute_playbooks" {
150150 provisioner "remote-exec" {
151151 inline = [
152152 " if [ -f \" /root/.powervs/config.json\" ]; then" ,
153- " if ! ( head -n 1 | grep -q '^\\ $ANSIBLE_VAULT' ); then" ,
153+ " if ! ( head -n 1 /root/.powervs/config.json | grep -q '^$ANSIBLE_VAULT' ); then" ,
154154 " echo ${ var . ansible_vault_password } > password_file" ,
155155 " ansible-vault encrypt /root/.powervs/config.json --vault-password-file password_file" ,
156156 " fi" ,
@@ -235,7 +235,7 @@ resource "terraform_data" "execute_playbooks_with_vault" {
235235 provisioner "remote-exec" {
236236 inline = [
237237 " if [ -f \" /root/.powervs/config.json\" ]; then" ,
238- " if ! ( head -n 1 | grep -q '^\\ $ANSIBLE_VAULT' ); then" ,
238+ " if ! ( head -n 1 /root/.powervs/config.json | grep -q '^$ANSIBLE_VAULT' ); then" ,
239239 " ansible-vault decrypt /root/.powervs/config.json --vault-password-file password_file" ,
240240 " fi" ,
241241 " fi"
@@ -254,7 +254,7 @@ resource "terraform_data" "execute_playbooks_with_vault" {
254254 provisioner "remote-exec" {
255255 inline = [
256256 " if [ -f \" /root/.powervs/config.json\" ]; then" ,
257- " if ! ( head -n 1 | grep -q '^\\ $ANSIBLE_VAULT' ); then" ,
257+ " if ! ( head -n 1 /root/.powervs/config.json | grep -q '^$ANSIBLE_VAULT' ); then" ,
258258 " echo ${ var . ansible_vault_password } > password_file" ,
259259 " ansible-vault encrypt /root/.powervs/config.json --vault-password-file password_file" ,
260260 " fi" ,
0 commit comments