Comments (2)
Hi,
You should escape your string with the raw
tag, see https://kestra.io/docs/concepts/expression/tag#raw.
Double curly brace is used by our tempating engine to render expressions.
from kestra.
As I said, I have tried various methods.
tasks:
- id: server-init-essentials
type: io.kestra.plugin.core.flow.WorkingDirectory
inputFiles:
inventory.ini: |
{% for host in vars.hosts %}
{{ host }} ansible_port=2242
{% endfor %}
myplaybook.yml: |
---
- hosts: all
become: true
tasks:
- name: Insert content into /etc/rc.local
ansible.builtin.lineinfile:
path: /etc/rc.local
line: {% raw %}{{ item }}{% endraw %}
loop:
- '#!/bin/sh -e'
- 'sysctl -p /etc/sysctl.d/42-disable-ipv6.conf'
- 'exit 0'
2024-06-21 10:24:25.757
Failed preExecuteTasks on WorkingDirectory: Unable to find `item` used in the expression `---
- hosts: all
become: true
tasks:
- name: Insert content into /etc/rc.local
ansible.builtin.lineinfile:
path: /etc/rc.local
line: {{ item }}
loop:
- '#!/bin/sh -e'
- 'sysctl -p /etc/sysctl.d/42-disable-ipv6.conf'
- 'exit 0'
` at line 8
its nice to instantly close the ticket
from kestra.
Related Issues (20)
- Calling WaitFor task from If block returns a `TaskRun.getOutputs() is null` error HOT 1
- The curl command displayed in the Execute modal fills default values incorrectly for inputs of type FILE, DURATION, TIME and DATE HOT 2
- 400 response code on Delete flow logs HOT 2
- Introduce new filter/search bar for Flows and Executions
- Blueprints page is broken on develop HOT 1
- Input validation error regression
- Error Stack-trace on Debug Outputs is hidden (too narrow column to show full error message, no scroll) HOT 1
- Support JSONL output in JSONata
- Fix plugin display names for CLI tasks HOT 4
- Parent namespace doesn't display child namespace files in Namespaces Page HOT 1
- Add a namespace column to the Flows tab in the Namespace page to account for child namespaces
- [Epic] Improve error handling
- [Epic] Handle issues that can make the application crash
- Ease flow dependancy declaration HOT 1
- Add Execution history to the Overview tab (e.g. as a Timeline view with states the Execution went through)
- [Epic] Capture outputs generated before a task run fails i.e. store Outputs before marking the task run as Failed
- [Epic] Improve plugin docs
- File Upload Endpoint for Kestra's Internal Storage HOT 1
- Add a lightweight kestra CLI
- Add a Supabase plugin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kestra.