X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fapache%2Ftasks%2Fmain.yml;h=5cd209acc7f0a7ebd876d87ef18803ce83e58e96;hb=a1b08d5935de21449861924a509622a33325fcbf;hp=b289d9419d2223378b721663adca2ff167b6c2dd;hpb=32266b707ada32788d608fa6fbe7f1de623f2755;p=ansible.git diff --git a/playbooks/debian/roles/apache/tasks/main.yml b/playbooks/debian/roles/apache/tasks/main.yml index b289d94..5cd209a 100644 --- a/playbooks/debian/roles/apache/tasks/main.yml +++ b/playbooks/debian/roles/apache/tasks/main.yml @@ -2,10 +2,11 @@ stat: path: /etc/apache2/conf-enabled/001-phd.conf register: phd_conf + changed_when: not phd_conf.stat.exists - debug: msg: "apache has already been configured" - when: not phd_conf.stats.exists + when: phd_conf.stat.exists - name: Install apache become: true @@ -17,13 +18,13 @@ 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 @@ -34,13 +35,13 @@ 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