Playbooks to a new Lilik
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.

23 lines
489 B

  1. ---
  2. - name: install dokuwiki and associated packages
  3. apt:
  4. name: "{{ item }}"
  5. state: present
  6. update_cache: yes
  7. cache_valid_time: 3600
  8. with_items:
  9. - dokuwiki
  10. - name: add nginx configurations
  11. template:
  12. src: dokuwiki.conf
  13. dest: "/etc/nginx/locations/{{ server_fqdn }}/dokuwiki.conf"
  14. notify:
  15. - restart nginx
  16. - name: Write dokuwiki configuration to local.php
  17. copy:
  18. src: dokuwiki.php
  19. dest: /etc/dokuwiki/local.php
  20. notify:
  21. - restart nginx