<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38745</bug_id>
          
          <creation_ts>2020-07-22 16:48:58 +0300</creation_ts>
          <short_desc>apache2_module: падает с ошибкой, если модуль уже enabled</short_desc>
          <delta_ts>2020-10-02 18:01:45 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ansible</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>39025</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>191514</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2020-07-22 16:48:58 +0300</bug_when>
    <thetext>Тестовый плейбук:

- 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! =&gt; {
    &quot;changed&quot;: false, 
    &quot;invocation&quot;: {
        &quot;module_args&quot;: {
            &quot;force&quot;: false, 
            &quot;identifier&quot;: &quot;ssl_module&quot;, 
            &quot;ignore_configcheck&quot;: false, 
            &quot;name&quot;: &quot;ssl&quot;, 
            &quot;state&quot;: &quot;present&quot;
        }
    }, 
    &quot;msg&quot;: &quot;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 \&quot;identifier\&quot; option.&quot;, 
    &quot;rc&quot;: 0, 
    &quot;stderr&quot;: &quot;&quot;, 
    &quot;stderr_lines&quot;: [], 
    &quot;stdout&quot;: &quot;Module ssl is already enabled!\nModule ssl installed;\n\trun service httpd2 condreload to fully enable.\n&quot;, 
    &quot;stdout_lines&quot;: [
        &quot;Module ssl is already enabled!&quot;, 
        &quot;Module ssl installed;&quot;, 
        &quot;\trun service httpd2 condreload to fully enable.&quot;
    ]
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192977</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-10-02 18:01:45 +0300</bug_when>
    <thetext>Исправлено в apache2-base-2.4.46-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>