Commit 2a486a01 authored by nimrod's avatar nimrod
Browse files

- Working on OpenBSD and Debian with tests.

parent c7b5dd9b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
Example
#######
gitreceive
##########

An (empty) example Ansible role complete with working tests out of the box. For
more information read the `blog post
<https://www.shore.co.il/blog/ansible-example-role/>`_.
An Ansible to install and configure `gitreceive
<https://github.com/progrium/gitreceive>`_. Take care to have the receiver
script capture all of stdin (the git archive tarball).

Requirements
------------
+6 −1
Original line number Diff line number Diff line
---
# defaults file for ansible-role-example
# defaults file for ansible-role-gitreceive

gitreceive_public_keys:
#    - '{{ lookup("file", "id_rsa.pub" ) }}'

gitreceive_receiver_script: # The contents of the receiver script.
+1 −1
Original line number Diff line number Diff line
---
# handlers file for ansible-role-example
# handlers file for ansible-role-gitreceive
+6 −6
Original line number Diff line number Diff line
galaxy_info:
  author: Nimrod Adar
  description: An example Ansible role
  description: Install and configure gitreceive.
  company: Shore technologies
  license: MIT
  min_ansible_version: 2.0
@@ -8,8 +8,8 @@ galaxy_info:
  - name: OpenBSD
    versions:
    - 5.9
  galaxy_tags: [ ansible ]
dependencies:
    - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap
      scm: git
      name: bootstrap
  - name: Debian
    versions:
    - jessie
  galaxy_tags: [ ci, git ]
dependencies: []
+3 −1
Original line number Diff line number Diff line
@@ -12,8 +12,10 @@ vagrant:
  platforms:
  - name: openbsd
    box: kaorimatz/openbsd-5.9-amd64
  - name: debian
    box: debian/jessie64
  instances:
  - name: ansible-role-example
  - name: ansible-role-gitreceive
    options:
        append_platform_to_hostname: yes
  raw_config_args:
Loading