- debug:
msg: "apache has already been configured"
- when: not phd_conf.stats.exists
+ when: phd_conf.stat.exists
- name: Install apache
become: true
purge: yes
state: latest
update_cache: yes
- when: not phd_conf.stats.exists
+ when: not phd_conf.stat.exists
- name: Enable SSL module
become: true
command: a2enmod ssl
notify: Reload apache
- when: not phd_conf.stats.exists
+ when: not phd_conf.stat.exists
- name: Configure apache
become: true
group: root
mode: '0640'
force: no
- when: not phd_conf.stats.exists
+ when: not phd_conf.stat.exists
- name: Enable config
become: true
command: a2enconf 001-phd
notify: Reload apache
- when: not phd_conf.stats.exists
+ when: not phd_conf.stat.exists
- name: Configure logrotate
become: true