BITRIX_VA_VER=9.0.6
ansible --version
Ошибка создания сертификата в логе
- на строке community.general.git_config:
ansible --version
| Код |
|---|
ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share /ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections executable location = /usr/bin/ansible python version = 3.11.11 (main, Feb 10 2025, 00:00:00) [GCC 11.5.0 20240719 (R ed Hat 11.5.0-5)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True |
Ошибка создания сертификата в логе
| Код |
|---|
PLAY [bitrix-hosts] ************************************************************ TASK [Gathering ERROR! couldn't resolve module/action 'community.general.git_config'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/etc/ansible/roles/web/tasks/configure_le.yml': line 40, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: |
| Код |
|---|
cat /etc/ansible/roles/web/tasks/configure_le.yml
---
# configure Let's Encrypt certificates
# dns_names: - array for domain names
# email: email address
# site_name: - bitrix site names
- include_tasks: sites-gathering_facts_site_names.yml
- debug:
msg: "{{ bx_sites_info }}"
- name: set cluster mark to disabled state
set_fact:
is_cluster: "disable"
- name: change cluster mark if web cluster configured
set_fact:
is_cluster: "enable"
when: "cluster_web_configure == 'enable'"
- name: download dehydrated
git:
repo: "https://github.com/lukas2511/dehydrated.git"
dest: /home/bitrix/dehydrated
clone: yes
update: yes
- name: create directories
file:
path: "{{ item }}"
state: directory
owner: bitrix
group: bitrix
force: yes
recurse: yes
with_items:
- /home/bitrix/dehydrated
- /var/www/dehydrated
- name: add dehydrated dir as safe directory global git option in .gitconfig
community.general.git_config:
repo: "https://github.com/lukas2511/dehydrated.git"
state: present
scope: global
name: safe.directory
value: "/home/bitrix/dehydrated"
- name: create nginx LE config
template:
src: nginx/letsencrypt-challenge-tokens.conf.j2
dest: /etc/nginx/bx/conf/letsencrypt-challenge-tokens.conf
- name: create nginx SSL options config
template:
src: nginx/ssl_options.conf.j2
dest: /etc/nginx/bx/conf/ssl_options.conf
- include_tasks: configure_le_location_per_site.yml
when: is_cluster == 'disable' and sites_cnt > 0
- include_tasks: configure_le_location_on_balancer.yml
when: is_cluster == 'enable' and sites_cnt > 0
- name: restart nginx
service:
name: nginx
state: restarted
- include_tasks: dehydrated.yml
vars:
dehydrated_type: "prod"
- include_tasks: configure_le_certificates_per_site.yml
when: sites_cnt > 0
#- include_tasks: configure_nginx_push_server.yml
# when: push_server is defined and push_server > 0
- name: reload nginx
service:
name: nginx
state: reloaded
- name: reload httpd
service:
name: httpd
state: reloaded
|
Модуль «Продвинутый обмен с 1C» , создание сайтов и интеграция с 1С ,