fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-19 12:09:28 +03:00
parent 6876365108
commit 2ccf6be8b7
10 changed files with 672 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
---
- name: Converge
hosts: all
roles:
# - role: oneget
# oneget_version: 0.6.0
- role: genlab.common.platform1c
platform1c_version: "8.3.26.1540" # required
platform1c_config: "{{ role_path }}/molecule/default/files/test.yaml" # required
platform1c_admin_pw_path: "secrets/platform1c.yaml" # required
platform1c_oneget_pw_path: "secrets/oneget.yaml" # required if using oneget
platform1c_platformfile: "{{ role_path }}/molecule/default/files/server64_with_all_clients_8_3_26_1540.zip" # if platfrom1c_download_methond == manual
platform1c_download_method: 'manual' # required. manual or oneget

View File

@@ -0,0 +1,16 @@
---
platform1c_pubs: # all fields are required.
- path: "/www/root/zup/" # mind the trailing / at the end.
name: "zup"
odata_enabled: true # REST API
ws_enabled: true # sync between different products (e.g. zup<->buh sync).
- path: "/www/root/buh/"
name: "buh"
odata_enabled: true
ws_enabled: false
- path: "/www/root/doc/"
name: "doc"
odata_enabled: false
ws_enabled: false

View File

@@ -0,0 +1,22 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: ubuntu
image: geerlingguy/docker-ubuntu2204-ansible:latest
pre_build_image: true
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
provisioner:
name: ansible
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint .

View File

@@ -0,0 +1,15 @@
---
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: "Get 1C version"
register: platform1c_version_installed
changed_when: false
ansible.builtin.command:
cmd: "ls /opt/1cv8/x86_64"
- name: Read 1C version
ansible.builtin.debug:
msg: "{{ platform1c_version_installed.stdout }}"