diff --git a/defaults/main.yml b/defaults/main.yml index f137cbd..47e76ed 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,7 @@ --- +# apache2_packages: +# - apache2 +# - apache2-mpm-prefork # apache2_module: # - { id: auth, state: absent } # - { id: rewrite, state: present } @@ -27,10 +30,9 @@ # append: '' # -# package name (version) -apache2_package: apache2 -# mpm package name (version) -apache2_mpm_package: apache2-mpm-prefork +# packages (versions) +apache2_packages: + - apache2 # ports to listen to apache2_ports: [80] # ssl ports to listen to diff --git a/tasks/install.yml b/tasks/install.yml index 97f6e15..ca7da0e 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -4,9 +4,7 @@ apt: pkg: "{{ item }}" state: present - with_items: - - "{{ apache2_package }}" - - "{{ apache2_mpm_package }}" + with_items: "{{ apache2_packages }}" - name: Adding rules copy: