Comments (3)
Got the same issue and
{% raw %}{{ var_name }}{% endraw %}
is not working
Here is my workflow:
id: infrastructure_automation
namespace: tutorial
tasks:
- id: setup
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:
- id: load_ssh_key
type: io.kestra.plugin.core.storage.LocalFiles
inputs:
inventory.ini: |
docker2 ansible_host=192.168.1.72 new_hostname=docker2
playbook.yml: |
---
- name: Update package
hosts: all
become: True
tasks:
- name: Update apt package index
ansible.builtin.apt:
update_cache: yes
- name: Upgrade all apt packages
ansible.builtin.apt:
upgrade: dist
- name: Set the hostname
hostname:
name: "{% raw %}{{new_hostname}}{% endraw %}"
- name: Ensure /etc/hosts is updated with the new hostname
lineinfile:
path: /etc/hosts
regexp: "^127\.0\.1\.1\s+"
line: "127.0.1.1 {% raw %}{{new_hostname}}{% endraw %}"
state: present
- name: Reboot the server
shell: sleep 2 && shutdown -r now
async: 1
poll: 0
ignore_errors: true
- name: Wait for the reboot to complete if there was a change.
wait_for_connection:
connect_timeout: 20
sleep: 5
delay: 5
timeout: 300
id_rsa: "{{ secret('SSH_KEY') }}"
- id: "bash"
type: "io.kestra.core.tasks.scripts.Bash"
commands:
- 'chmod 600 id_rsa'
- id: ansible_task
type: io.kestra.plugin.ansible.cli.AnsibleCLI
docker:
image: cytopia/ansible:latest-tools
commands:
- ansible-playbook -i inventory.ini --key-file id_rsa playbook.yml
env:
ANSIBLE_HOST_KEY_CHECKING: "False"
ANSIBLE_REMOTE_USER: "root"
ANSIBLE_USER: "root"
ANSIBLE_PRIVATE_KEY_FILE: id_rsa
Environment
Kestra Version: latest
Operating System (Docker):
from kestra.
Can you help us this is very blocking
from kestra.
So the issue was that we render twice the file content, I fixed it, it will be backported for our next bugfix release on 0.17
from kestra.
Related Issues (20)
- [UI] Allow importing multiple files and folders in the Namespace Files editor HOT 1
- OSS Preview build issue - Failed to load resource: the server responded with a status of 404 ‒ /api/v1/namespaces/company.myteam/files/directory:1
- [UI] Add the Inputs/Outputs Preview functionality for PDF files — for now, kestra displays them as binary objects
- Add YAML input type
- [Cooldown issue] Validate the possibility to optionally pass taskrun.value as object instead of JSON
- Implements resume of container for the Docker task runner HOT 2
- Find and Replace in Editor stops working sometimes after flow execution HOT 6
- [Blocker] Null coalescing operator doesn't work as expected when processing undefined inputs HOT 2
- Fresh new UI still doesn't load the Welcome page by default
- Task Runner fails sometimes on Python Commands and Script tasks HOT 3
- Concurrency Limit can be exceeded by RESTARED tasks
- Add delay before displaying detailed information when hovering over plugins HOT 1
- Restart a real time trigger from the UI
- No worker job resubmission when using a STANDALONE and an separate WORKER
- Change the 404 page
- Prepare a new design of the plugin properties display HOT 3
- Provides a better error message when Kestra cannot be started due to misconfiguration
- Every typed input on the editor will send a subgraph request
- Invalid plugins will break the whole json schema
- Kestra s3 and minio storage plugins are incompatible with Ceph
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.