Merge pull request #357 from cschug/fix_pr353

Fix inconsistencies and style in Kestra Ansible examples
This commit is contained in:
Christian Lempa 2024-07-12 13:20:28 +02:00 committed by GitHub
commit 500b33314b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View File

@ -17,21 +17,21 @@ tasks:
inventory.ini: |
srv-demo-1.home.clcreative.de
# --> replace with your playbook
myplaybook.yml: |
myplaybook.yaml: |
---
- hosts: srv-demo-1.home.clcreative.de
tasks:
- name: upgrade apt packages
become: true
apt:
upgrade: yes
update_cache: yes
ansible.builtin.apt:
upgrade: true
update_cache: true
# <--
id_rsa: "{{ secret('SSH_KEY') }}"
- id: ansible_task
type: io.kestra.plugin.ansible.cli.AnsibleCLI
docker:
image: cytopia/ansible:latest-tools
image: docker.io/cytopia/ansible:latest-tools
user: "1000" # required to set ssh key permissions
env:
"ANSIBLE_HOST_KEY_CHECKING": "false"

View File

@ -22,7 +22,7 @@ tasks:
# <--
type: io.kestra.plugin.ansible.cli.AnsibleCLI
docker:
image: cytopia/ansible:latest-tools
image: docker.io/cytopia/ansible:latest-tools
env:
"ANSIBLE_HOST_KEY_CHECKING": "false"
# --> (optional) when using a different remote user

View File

@ -27,7 +27,7 @@ tasks:
# <--
type: io.kestra.plugin.ansible.cli.AnsibleCLI
docker:
image: cytopia/ansible:latest-tools
image: docker.io/cytopia/ansible:latest-tools
user: "1000" # required to set ssh key permissions
env:
"ANSIBLE_HOST_KEY_CHECKING": "false"