Skip to content

Instantly share code, notes, and snippets.

@patrickheeney
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save patrickheeney/9919476 to your computer and use it in GitHub Desktop.

Select an option

Save patrickheeney/9919476 to your computer and use it in GitHub Desktop.

Revisions

  1. patrickheeney revised this gist Apr 1, 2014. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,11 @@
    path=/etc/apache2/sites-enabled/{{ item }}
    state=absent
    with_items:
    - 'default'
    - 'default.conf'
    - '000-default'
    - '000-default.conf'
    - 'default-ssl'
    - 'default-ssl.conf'
    notify:
    - restart-apache
    - apache-restart
  2. patrickheeney created this gist Apr 1, 2014.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    - name: virtualhosts | remove default sites
    file: >
    path=/etc/apache2/sites-enabled/{{ item }}
    state=absent
    with_items:
    - 'default.conf'
    - '000-default.conf'
    notify:
    - restart-apache