Проблему с установкой сертификата (через меню 8-3-2) решил так:
1) Установил LetsEncrypt
2) Закинул сертификаты в папку /etc/nginx/certs/sitename.ru
3) Поменял пути к сертификатам в файле /etc/nginx/bx/site_avaliable/bx_ext_ssl_sitename.ru.conf (# Enable SSL connection)
Вроде работает.)
Часть лога некорректной установки:
Скрытый текст |
|---|
| Код |
|---|
TASK [web : copy certificate_chain] ********************************************
fatal: [sitename]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'item' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/web/tasks/configure_cert_per_sites.yml': line 46, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: copy certificate_chain\n ^ here\n"}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @/etc/ansible/web.retry
PLAY RECAP *********************************************************************
svkgroup : ok=16 changed=5 unreachable=0 failed=1
|
|
Буду благодарен, если поможете исправить.
Решение проблемы:Добавить в файл /etc/ansible/roles/web/tasks/configure_cert_per_sites.yml строчку
with_items: "{{ site_names }}" в конце блока - name: copy certificate_chain