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

{
    "id": 1191,
    "sha1": "c5fe548d2ac52caed2502f9bcc278698f3c7bd2c",
    "playbook": {
        "id": 19,
        "items": {
            "plays": 13,
            "tasks": 201,
            "results": 148,
            "hosts": 1,
            "files": 102,
            "records": 0
        },
        "labels": [],
        "started": "2020-01-31T15:51:51.022803Z",
        "ended": "2020-01-31T15:55:44.703013Z",
        "duration": "00:03:53.680210",
        "name": null,
        "ansible_version": "2.8.8",
        "status": "completed",
        "path": "/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/setup-hosts.yml"
    },
    "content": "---\n# Copyright 2014, Rackspace US, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n- name: Set lxc containers group\n  hosts: \"{{ container_group | default('all_containers') }}\"\n  gather_facts: false\n  vars_files:\n    - \"defaults/{{ install_method }}_install.yml\"\n  tasks:\n    - name: Add hosts to dynamic inventory group\n      group_by:\n        key: lxc_containers\n        parents: all_lxc_containers\n      when:\n        - container_tech == 'lxc'\n  tags:\n    - always\n    - lxc-containers-create\n\n- name: Create container(s)\n  hosts: all_lxc_containers\n  user: root\n  gather_facts: false\n  vars_files:\n    - \"defaults/{{ install_method }}_install.yml\"\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  tags:\n    - lxc-containers-create\n  roles:\n    - role: \"lxc_container_create\"\n  post_tasks:\n    - name: Wait for container connectivity\n      wait_for_connection:\n        connect_timeout: \"{{ lxc_container_wait_params.connect_timeout | default(omit) }}\"\n        delay: \"{{ lxc_container_wait_params.delay | default(omit) }}\"\n        sleep: \"{{ lxc_container_wait_params.sleep | default(omit) }}\"\n        timeout: \"{{ lxc_container_wait_params.timeout | default(omit) }}\"\n\n    # When using gather_facts with smart gathering,\n    # the facts aren't fully updated unless they\n    # are old. Using the setup module in a task\n    # does a more thorough collection.\n    # Given we've just created the container, it is\n    # best that we do a full collection of facts -\n    # otherwise we end up with a stale set which\n    # has stuff like the hostname = localhost.\n    - name: Gather facts for new container(s)\n      setup:\n        gather_subset: \"network,hardware,virtual\"\n\n- name: Configure containers default software\n  hosts: all_lxc_containers\n  user: root\n  gather_facts: true\n  vars_files:\n    - defaults/repo_packages/openstack_services.yml\n    - \"defaults/{{ install_method }}_install.yml\"\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  tags:\n    - lxc-containers-create\n  pre_tasks:\n    - include_tasks: common-tasks/package-cache-proxy.yml\n      when: install_method == \"source\"\n  roles:\n    - role: \"openstack_hosts\"\n      is_container: true\n",
    "created": "2020-01-31T15:51:52.298384Z",
    "updated": "2020-01-31T15:51:52.298423Z",
    "path": "/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/containers-lxc-create.yml"
}