mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-07 08:54:04 +01:00
Merge pull request #357 from cschug/fix_pr353
Fix inconsistencies and style in Kestra Ansible examples
This commit is contained in:
commit
500b33314b
@ -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
|
||||
- name: upgrade apt packages
|
||||
become: true
|
||||
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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user