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 @@
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment