fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-18 17:20:17 +03:00
parent 72c812214a
commit 6a77bc6d56
16 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
- name: Verify
hosts: all
gather_facts: false
any_errors_fatal: true
pre_tasks:
- name: "Copy test file"
ansible.builtin.copy:
src: ./test.txt
dest: /mnt/test.txt
owner: root
group: root
mode: "0660"
tasks:
- name: "Verify custom directory was mounted inside container successfully"
register: nginx_docker_this
failed_when: nginx_docker_this.stdout != 'this is a test'
changed_when: false
community.docker.docker_container_exec:
container: nginx
command: cat /mnt/test.txt