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

{
    "id": 675,
    "sha1": "b79c520bef3fa4a9752672ce9eebe08c895d579f",
    "playbook": {
        "id": 12,
        "items": {
            "plays": 13,
            "tasks": 206,
            "results": 150,
            "hosts": 1,
            "files": 104,
            "records": 0
        },
        "labels": [],
        "started": "2020-01-31T15:49:11.871862Z",
        "ended": "2020-01-31T15:53:58.165245Z",
        "duration": "00:04:46.293383",
        "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 2017, 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# === systemd-nspawn defaults ==================================================\n# Default networks that will be applied ONLY to nspwan deployments.\nnspawn_networks:\n  nspawn_address:\n    bridge: \"nspawn0\"\n    interface: \"mv-nspawn0\"\n    address: dhcp\n\n# This is a list of items that will be passed into the container as READ-ONLY\n# files or directories. If any of these items are passed into the container\n# the container create process will ensure the file is not present within the\n# container prior to writting the config.\n#  nspawn_read_only_host_bindmount:\n#    - { source: /etc/resolv.conf, dest: /etc/resolv.conf }\nnspawn_read_only_host_bindmount: \"{{ _nspawn_read_only_host_bindmount | default([]) }}\"\n\n# This is a list of items that will be passed into the container as a shared\n# bind mount. If any of these items are passed into the container.\n#  nspawn_shared_host_bindmount:\n#    - /etc/apt\nnspawn_shared_host_bindmount:\n  - /etc/localtime\n  - /root\n  - /opt\n\n# Defined CPU architecture map\nnspawn_architecture_mapping:\n  x86_64: amd64\n  ppc64le: ppc64el\n  s390x: s390x\n  armv7l: armhf\n\n# Set the cache map used when creating the container.\n#  nspawn_map:\n#    distro: \"$DISTRO_NAME\"\n#    arch: \"{{ nspawn_architecture_mapping[container_architecture] }}\"\n#    release: \"{{ hostvars[physical_host]['ansible_distribution_version'] }}\"\nnspawn_map: \"{{ _nspawn_map | default({}) }}\"\n\n# Enable or Disable the use of systemd-resolved. Option is Boolean.\nnspawn_container_enable_resolved: \"{{ _nspawn_container_enable_resolved | default(true) }}\"\n\n# Enable or Disable config preservation. If this is disabled a new configuration\n# file for the systemd container will be created, even if the container already\n# exists. When this is set to \"false\" the container will be restarted should the\n# configuration task(s) result in change.\nnspawn_container_preserve_config: true\n\n# Enable or Disable the BTRFS quota system for the \"/var/lib/machines\" mount\n# point. More information on the BTRFS quota system can be found here:\n#  * https://btrfs.wiki.kernel.org/index.php/Quota_support\nnspawn_host_machine_quota_disabled: false\n\n# Set the default qgroup limits used for file system quotas. The default is\n# \"none\". See the following documentation for more information:\n#  * https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-qgroup\nnspawn_host_qgroup_space_limit: none\nnspawn_host_qgroup_compression_limit: none\n\n\n# === General container defaults ===============================================\n# NOTE(cloudnull): These are host specific variables we capture up-front. These\n#                  pseudo variables are used to capture the container host\n#                  information but could be overridden to deploy whatever.\ncontainer_host: \"{{ hostvars[inventory_hostname]['physical_host'] | default('localhost') }}\"\ncontainer_architecture: \"{{ hostvars[container_host]['ansible_architecture'] | lower }}\"\n\n# Name of the on-disk image to use for deployment.\ncontainer_image: \"{{ nspawn_map['distro'] }}-{{ nspawn_map['release'] }}-{{ nspawn_map['arch'] }}\"\n\n# The domain the containers will exist within.\ncontainer_domain: \"openstack.local\"\n\n# Container Default bind mounts. This option will be merged with the container\n# bind mounts. This option takes a list of files with `mount_path` defining the\n# path on the host and `bind_dir_path` which defines the intra-container path\n# and is relative, it assumes that it starts with a \"/\".\ncontainer_default_bind_mounts:\n  - mount_path: \"/openstack/backup/{{ inventory_hostname }}\"\n    bind_dir_path: \"var/backup\"\n\n# Container bind mounts. This option takes a list of files on a host that will\n# be mounted at the exact same path within the container. This option takes a\n# list of files with `mount_path` defining the path on the host and\n# `bind_dir_path` which defines the intra-container path which is a relative\n# and starts at \"/\".\ncontainer_bind_mounts: []\n\n# option used to specific specific container config values which will be\n# directly injected into the container service or nspawn config file. This\n# option take Key=Value pairs and can be used to set any desired config options\n# in any section. Review the following link for more details:\n# * https://www.freedesktop.org/software/systemd/man/systemd.nspawn.html\ncontainer_config_overrides: {}\n\n# Default networks that will be applied ALL containerized deployments.\n#  container_networks:\n#    management_address:\n#      address: \"{{ ansible_host | default('localhost') }}\"\n#      netmask: \"255.255.255.0\"\n#      bridge: \"br-mgmt\"\n#      static_routes:\n#        - cidr: 172.29.100.0/24\n#          gateway: 172.29.100.100\n\ncontainer_networks: {}\n",
    "created": "2020-01-31T15:49:15.553936Z",
    "updated": "2020-01-31T15:49:15.553974Z",
    "path": "/home/zuul/src/opendev.org/openstack/openstack-ansible-nspawn_container_create/defaults/main.yml"
}