Skip to content
main.yml 740 B
Newer Older
nimrod's avatar
nimrod committed
---
# tasks file for pelican-gitreceive
nimrod's avatar
nimrod committed
    that:
        - ansible_os_family in ['OpenBSD', 'Debian']
        - ansible_distribution_release in ['6.0', 'xenial', 'trusty', 'jessie']
        - pelican_gitreceive_public_keys is iterable
        - pelican_gitreceive_output is defined

- name: APT install prerequisites
  apt:
      name: python-dev
      state: present
      update_cache: yes
      cache_valid_time: 3600

- name: pip install
  with_items:
      - pelican
      - fabric
  pip:
      name: '{{ item }}'
      state: present

- name: Create directory structure
  file:
      path: /var/www/htdocs/www.shore.co.il/blog/
      owner: git
      group: git
      state: directory
      mode: 0o0755