Skip to content
Snippets Groups Projects
Commit c9e9b5ea authored by nimrod's avatar nimrod
Browse files

- Validate config as a seperate task (not compatible with Ansible's

validate).
- Remove groups fact gathering, not used since we're adding to ssl-cert
group anymore.
parent ccba7f8e
Branches
No related tags found
No related merge requests found
...@@ -11,10 +11,6 @@ ...@@ -11,10 +11,6 @@
path: /etc/ssl/dhparams path: /etc/ssl/dhparams
register: stat_dhparams register: stat_dhparams
- name: Get groups
getent:
database: group
- name: APT install - name: APT install
apt: apt:
name: [apache2, apache2-utils] name: [apache2, apache2-utils]
...@@ -55,7 +51,6 @@ ...@@ -55,7 +51,6 @@
owner: root owner: root
group: 0 group: 0
mode: 0o0644 mode: 0o0644
validate: apache2ctl configtest
notify: notify:
- Restart Apache - Restart Apache
...@@ -69,10 +64,13 @@ ...@@ -69,10 +64,13 @@
owner: root owner: root
group: 0 group: 0
mode: 0o0644 mode: 0o0644
validate: apache2ctl configtest
notify: notify:
- Restart Apache - Restart Apache
- name: Validate config
command: apache2ctl configtest
changed_when: False
- name: Enable service - name: Enable service
service: service:
name: apache2 name: apache2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment