GET /api/v1/files/6
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 6,
    "sha1": "d7ced41f06c50fd2be044abb01bad712ff872c78",
    "playbook": {
        "id": 2,
        "duration": "5.680824",
        "items": {
            "plays": 2,
            "tasks": 6,
            "results": 14,
            "hosts": 5,
            "files": 1,
            "records": 0
        },
        "labels": [],
        "started": "2019-07-26T15:22:16.334880Z",
        "ended": "2019-07-26T15:22:22.015704Z",
        "name": null,
        "ansible_version": "2.9.0.dev0",
        "status": "completed",
        "path": "/home/zuul/.ara-tests/git/ara/tests/integration/hosts.yaml"
    },
    "content": "---\n#  Copyright (c) 2018 Red Hat, Inc.\n#\n#  This file is part of ARA Records Ansible.\n#\n#  ARA is free software: you can redistribute it and/or modify\n#  it under the terms of the GNU General Public License as published by\n#  the Free Software Foundation, either version 3 of the License, or\n#  (at your option) any later version.\n#\n#  ARA is distributed in the hope that it will be useful,\n#  but WITHOUT ANY WARRANTY; without even the implied warranty of\n#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n#  GNU General Public License for more details.\n#\n#  You should have received a copy of the GNU General Public License\n#  along with ARA.  If not, see <http://www.gnu.org/licenses/>.\n\n- name: Create fake hosts for host tests\n  hosts: localhost\n  gather_facts: yes\n  tasks:\n    - name: Add fake hosts in inventory\n      add_host:\n        name: \"{{ item }}\"\n        ansible_host: \"127.0.0.1\"\n        ansible_connection: \"local\"\n      with_items:\n        - host1\n        - host2\n        - host3\n\n- name: ARA Hosts test play\n  hosts: all\n  gather_facts: yes\n  tasks:\n    - name: Ping\n      ping:\n\n    - name: Do something only on host1\n      set_fact:\n        something: 'done'\n      when: inventory_hostname == 'host1'\n\n    - name: Fail something only on host2\n      command: /bin/false\n      when: inventory_hostname == 'host2'\n      ignore_errors: true\n",
    "created": "2019-07-26T15:22:16.365682Z",
    "updated": "2019-07-26T15:22:16.365750Z",
    "path": "/home/zuul/.ara-tests/git/ara/tests/integration/hosts.yaml"
}