|
@@ -14,17 +14,20 @@ tasks:
|
|
|
- id: ansible_task
|
|
- id: ansible_task
|
|
|
namespaceFiles:
|
|
namespaceFiles:
|
|
|
enabled: true
|
|
enabled: true
|
|
|
- # Files are to be uploaded to the kestra data directory for the namespace in
|
|
|
|
|
- # <docker volume for kestra-data>/<namespace>/_files/
|
|
|
|
|
|
|
+ # --> upload your files to the kestra data directory for the namespace in
|
|
|
|
|
+ # <docker volume for kestra-data>/<namespace>/_files/
|
|
|
include:
|
|
include:
|
|
|
- inventory.ini
|
|
- inventory.ini
|
|
|
- myplaybook.yaml
|
|
- myplaybook.yaml
|
|
|
|
|
+ # <--
|
|
|
type: io.kestra.plugin.ansible.cli.AnsibleCLI
|
|
type: io.kestra.plugin.ansible.cli.AnsibleCLI
|
|
|
docker:
|
|
docker:
|
|
|
image: cytopia/ansible:latest-tools
|
|
image: cytopia/ansible:latest-tools
|
|
|
env:
|
|
env:
|
|
|
"ANSIBLE_HOST_KEY_CHECKING": "false"
|
|
"ANSIBLE_HOST_KEY_CHECKING": "false"
|
|
|
|
|
+ # --> (optional) when using a different remote user
|
|
|
|
|
+ # "ANSIBLE_REMOTE_USER": "your-remote-user"
|
|
|
|
|
+ # <--
|
|
|
commands:
|
|
commands:
|
|
|
- # Apk command only required if use ssh passwords.
|
|
|
|
|
- - apk add sshpass
|
|
|
|
|
|
|
+ - apk add sshpass # only required if use ssh passwords.
|
|
|
- ansible-playbook -i inventory.ini myplaybook.yaml
|
|
- ansible-playbook -i inventory.ini myplaybook.yaml
|