Тестовый плейбук: - hosts: test tasks: - name: Install apache2 apt_rpm: pkg: apache2-base,apache2-mod_ssl state: present update_cache: yes - name: Enable apache2 modules apache2_module: state: present name: ssl Запуск плейбука падает с ошибкой: fatal: [hosta]: FAILED! => { "changed": false, "invocation": { "module_args": { "force": false, "identifier": "ssl_module", "ignore_configcheck": false, "name": "ssl", "state": "present" } }, "msg": "Failed to set module ssl to enabled:\nModule ssl is already enabled!\nModule ssl installed;\n\trun service httpd2 condreload to fully enable.\n\nMaybe the module identifier (ssl_module) was guessed incorrectly.Consider setting the \"identifier\" option.", "rc": 0, "stderr": "", "stderr_lines": [], "stdout": "Module ssl is already enabled!\nModule ssl installed;\n\trun service httpd2 condreload to fully enable.\n", "stdout_lines": [ "Module ssl is already enabled!", "Module ssl installed;", "\trun service httpd2 condreload to fully enable." ] }
Исправлено в apache2-base-2.4.46-alt2