diff --git a/tasks/main.yml b/tasks/main.yml index b67d502f1c3b416721e935dfd783e7435770804a..79ec098f4396535c5445ac7315b8e74e57ae1f8a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,10 +11,6 @@ path: /etc/ssl/dhparams register: stat_dhparams -- name: Get groups - getent: - database: group - - name: APT install apt: name: [apache2, apache2-utils] @@ -55,7 +51,6 @@ owner: root group: 0 mode: 0o0644 - validate: apache2ctl configtest notify: - Restart Apache @@ -69,10 +64,13 @@ owner: root group: 0 mode: 0o0644 - validate: apache2ctl configtest notify: - Restart Apache +- name: Validate config + command: apache2ctl configtest + changed_when: False + - name: Enable service service: name: apache2