TripleO Ansible project repository. Contains playbooks for use with TripleO OpenStack deployments.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2KB

  1. ---
  2. # Copyright 2019 Red Hat, Inc.
  3. # All Rights Reserved.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  6. # not use this file except in compliance with the License. You may obtain
  7. # a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. # License for the specific language governing permissions and limitations
  15. # under the License.
  16. - name: Prepare
  17. hosts: all
  18. roles:
  19. - role: test_deps
  20. test_deps_extra_packages:
  21. - podman
  22. tasks:
  23. - name: Prepare the contianer configs directory
  24. file:
  25. path: '/tmp/container-configs'
  26. state: directory
  27. - name: Create a configuration file for a fedora container
  28. copy:
  29. content: |
  30. {
  31. "image": "fedora:latest",
  32. "net": "host",
  33. "command": "sleep 3600",
  34. "restart": "always",
  35. "net": "host",
  36. "healthcheck": { "test": "echo test" }
  37. }
  38. dest: '/tmp/container-configs/fedora.json'