No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

blog.yml 674B

12345678910111213141516
  1. - name: Create directories for HTML documents
  2. file: state=directory path={{ item }} group=www-data owner={{ main_user_name }}
  3. with_items: "{{ virtual_domains | json_query('[*].doc_root') | unique }}"
  4. - name: Create the Apache sites config files
  5. template:
  6. src=etc_apache2_sites-available_blog.j2
  7. dest=/etc/apache2/sites-available/{{ item.name }}.conf
  8. owner=root
  9. group=root
  10. with_items: "{{ virtual_domains }}"
  11. - name: Enable Apache sites (creates new sites-enabled symlinks)
  12. command: a2ensite {{ item }}.conf creates=/etc/apache2/sites-enabled/{{ item }}.conf
  13. notify: restart apache
  14. with_items: "{{ virtual_domains | json_query('[*].name') }}"