mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-25 01:34:36 +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: |
|
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"
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user