fix ansible-lint errors
This commit is contained in:
14
roles/platform1c/molecule/default/converge.yml
Normal file
14
roles/platform1c/molecule/default/converge.yml
Normal 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
|
||||
16
roles/platform1c/molecule/default/files/test.yaml
Normal file
16
roles/platform1c/molecule/default/files/test.yaml
Normal 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
|
||||
22
roles/platform1c/molecule/default/molecule.yml
Normal file
22
roles/platform1c/molecule/default/molecule.yml
Normal 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 .
|
||||
15
roles/platform1c/molecule/default/verify.yml
Normal file
15
roles/platform1c/molecule/default/verify.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user