質問編集履歴

2

説明文の修正

2023/04/30 09:02

投稿

khaii21
khaii21

スコア66

test CHANGED
File without changes
test CHANGED
@@ -42,13 +42,14 @@
42
42
  ```ここに言語名を入力
43
43
  - name: test replace
44
44
  vars:
45
- hoge1: "{{ test_hoge }}" | regex_replace('tokyo', '')
45
+ hoge1: {{ test_hoge }} | regex_replace('tokyo', '')
46
46
  ```
47
47
 
48
48
  ### 試したこと
49
49
 
50
50
  下記も試しましたがエラーが解消しません
51
51
  ```
52
+ hoge1: "{{ test_hoge }}" | regex_replace('tokyo', '')
52
- hoge1: {{ test_hoge }} | regex_replace('tokyo', '')
53
+ hoge1: {{ test_hoge | regex_replace('tokyo', '') }}
53
54
  ```
54
55
 

1

説明文の修正

2023/04/30 08:50

投稿

khaii21
khaii21

スコア66

test CHANGED
File without changes
test CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  vars:
25
25
  hoge1: "{{ test_hoge }}" | regex_replace('tokyo', '')
26
- ^ here
26
+ ^ here
27
27
  We could be wrong, but this one looks like it might be an issue with
28
28
  missing quotes. Always quote template expression brackets when they
29
29
  start a value. For instance: