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

View File

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

View File

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