]> git.phdru.name Git - ansible.git/commitdiff
Fix(add-apache-vhost): Remove wrong conditions
authorOleg Broytman <phd@phdru.name>
Sun, 28 Jul 2019 18:59:16 +0000 (21:59 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 28 Jul 2019 19:25:03 +0000 (22:25 +0300)
playbooks/debian/roles/add-apache-vhost/tasks/add-vhost.yml

index 145982dbc1c9d9a436cfcc4bd7bd97c8251d2aa0..d01472c8ad1685135193f38c570b10299b7d16a9 100644 (file)
@@ -7,14 +7,11 @@
     group: root
     mode: '0640'
     force: no
-  notify: Reload apache
-  when: vhost.rc != 0
 
 - name: Enable site
   become: true
   command: "a2ensite {{ virtual_host }}"
   notify: Reload apache
-  when: vhost.rc != 0
 
 - name: Create directories
   become: true
@@ -27,4 +24,3 @@
   loop: ['/usr/local/apache2/cgi-bin', '/usr/local/apache2/htdocs',
          '/var/log/apache2',
         ]
-  when: vhost.rc != 0