Matrix Docker Ansible eploy
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.
 
 

183 lines
9.0 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2024, Slavi Pantaleev, Aine Etke, MDAD community
  3. # members
  4. # This file is distributed under the same license as the
  5. # matrix-docker-ansible-deploy package.
  6. # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
  7. #
  8. #, fuzzy
  9. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  12. "Report-Msgid-Bugs-To: \n"
  13. "POT-Creation-Date: 2025-01-27 09:54+0200\n"
  14. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  15. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  16. "Language: bg\n"
  17. "Language-Team: bg <LL@li.org>\n"
  18. "Plural-Forms: nplurals=2; plural=(n != 1);\n"
  19. "MIME-Version: 1.0\n"
  20. "Content-Type: text/plain; charset=utf-8\n"
  21. "Content-Transfer-Encoding: 8bit\n"
  22. "Generated-By: Babel 2.16.0\n"
  23. #: ../../../docs/ansible.md:2
  24. msgid "Running this playbook"
  25. msgstr ""
  26. #: ../../../docs/ansible.md:4
  27. msgid "This playbook is meant to be run using [Ansible](https://www.ansible.com/)."
  28. msgstr ""
  29. #: ../../../docs/ansible.md:6
  30. msgid "Ansible typically runs on your local computer and carries out tasks on a remote server. If your local computer cannot run Ansible, you can also run Ansible on some server somewhere (including the server you wish to install to)."
  31. msgstr ""
  32. #: ../../../docs/ansible.md:8
  33. msgid "Supported Ansible versions"
  34. msgstr ""
  35. #: ../../../docs/ansible.md:10
  36. msgid "To manually check which version of Ansible you're on, run: `ansible --version`."
  37. msgstr ""
  38. #: ../../../docs/ansible.md:12
  39. msgid "For the **best experience**, we recommend getting the **latest version of Ansible available**."
  40. msgstr ""
  41. #: ../../../docs/ansible.md:14
  42. msgid "We're not sure what's the minimum version of Ansible that can run this playbook successfully. The lowest version that we've confirmed (on 2022-11-26) to be working fine is: `ansible-core` (`2.11.7`) combined with `ansible` (`4.10.0`)."
  43. msgstr ""
  44. #: ../../../docs/ansible.md:16
  45. msgid "If your distro ships with an Ansible version older than this, you may run into issues. Consider [Upgrading Ansible](#upgrading-ansible) or [using Ansible via Docker](#using-ansible-via-docker)."
  46. msgstr ""
  47. #: ../../../docs/ansible.md:18
  48. msgid "Upgrading Ansible"
  49. msgstr ""
  50. #: ../../../docs/ansible.md:20
  51. msgid "Depending on your distribution, you may be able to upgrade Ansible in a few different ways:"
  52. msgstr ""
  53. #: ../../../docs/ansible.md:22
  54. msgid "by using an additional repository (PPA, etc.), which provides newer Ansible versions. See instructions for [CentOS](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-rhel-centos-or-fedora), [Debian](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-debian), or [Ubuntu](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-ubuntu) on the Ansible website."
  55. msgstr ""
  56. #: ../../../docs/ansible.md:24
  57. msgid "by removing the Ansible package (`yum remove ansible` or `apt-get remove ansible`) and installing via [pip](https://pip.pypa.io/en/stable/installation/) (`pip install ansible`)."
  58. msgstr ""
  59. #: ../../../docs/ansible.md:26
  60. msgid "If using the `pip` method, do note that the `ansible-playbook` binary may not be on the `$PATH` (https://linuxconfig.org/linux-path-environment-variable), but in some more special location like `/usr/local/bin/ansible-playbook`. You may need to invoke it using the full path."
  61. msgstr ""
  62. #: ../../../docs/ansible.md:28
  63. msgid "**Note**: Both of the above methods are a bad way to run system software such as Ansible. If you find yourself needing to resort to such hacks, please consider reporting a bug to your distribution and/or switching to a sane distribution, which provides up-to-date software."
  64. msgstr ""
  65. #: ../../../docs/ansible.md:30
  66. msgid "Using Ansible via Docker"
  67. msgstr ""
  68. #: ../../../docs/ansible.md:32
  69. msgid "Alternatively, you can run Ansible inside a Docker container (powered by the [devture/ansible](https://hub.docker.com/r/devture/ansible/) Docker image)."
  70. msgstr ""
  71. #: ../../../docs/ansible.md:34
  72. msgid "This ensures that you're using a very recent Ansible version, which is less likely to be incompatible with the playbook."
  73. msgstr ""
  74. #: ../../../docs/ansible.md:36
  75. msgid "You can either [run Ansible in a container on the Matrix server itself](#running-ansible-in-a-container-on-the-matrix-server-itself) or [run Ansible in a container on another computer (not the Matrix server)](#running-ansible-in-a-container-on-another-computer-not-the-matrix-server)."
  76. msgstr ""
  77. #: ../../../docs/ansible.md:38
  78. msgid "Running Ansible in a container on the Matrix server itself"
  79. msgstr ""
  80. #: ../../../docs/ansible.md:40
  81. msgid "To run Ansible in a (Docker) container on the Matrix server itself, you need to have a working Docker installation. Docker is normally installed by the playbook, so this may be a bit of a chicken and egg problem. To solve it:"
  82. msgstr ""
  83. #: ../../../docs/ansible.md:42
  84. msgid "you **either** need to install Docker manually first. Follow [the upstream instructions](https://docs.docker.com/engine/install/) for your distribution and consider setting `matrix_playbook_docker_installation_enabled: false` in your `vars.yml` file, to prevent the playbook from installing Docker"
  85. msgstr ""
  86. #: ../../../docs/ansible.md:43
  87. msgid "**or** you need to run the playbook in another way (e.g. [Running Ansible in a container on another computer (not the Matrix server)](#running-ansible-in-a-container-on-another-computer-not-the-matrix-server)) at least the first time around"
  88. msgstr ""
  89. #: ../../../docs/ansible.md:45
  90. msgid "Once you have a working Docker installation on the server, **clone the playbook** somewhere on the server and configure it as per usual (`inventory/hosts`, `inventory/host_vars/…`, etc.), as described in [configuring the playbook](configuring-playbook.md)."
  91. msgstr ""
  92. #: ../../../docs/ansible.md:47
  93. msgid "You would then need to add `ansible_connection=community.docker.nsenter` to the host line in `inventory/hosts`. This tells Ansible to connect to the \"remote\" machine by switching Linux namespaces with [nsenter](https://man7.org/linux/man-pages/man1/nsenter.1.html), instead of using SSH."
  94. msgstr ""
  95. #: ../../../docs/ansible.md:49
  96. msgid "Alternatively, you can leave your `inventory/hosts` as is and specify the connection type in **each** `ansible-playbook` call you do later, like this: `ansible-playbook --connection=community.docker.nsenter …`"
  97. msgstr ""
  98. #: ../../../docs/ansible.md:51 ../../../docs/ansible.md:71
  99. msgid "Run this from the playbook's directory:"
  100. msgstr ""
  101. #: ../../../docs/ansible.md:63 ../../../docs/ansible.md:84
  102. msgid "Once you execute the above command, you'll be dropped into a `/work` directory inside a Docker container. The `/work` directory contains the playbook's code."
  103. msgstr ""
  104. #: ../../../docs/ansible.md:65 ../../../docs/ansible.md:86
  105. msgid "First, consider running `git config --global --add safe.directory /work` to [resolve directory ownership issues](#resolve-directory-ownership-issues)."
  106. msgstr ""
  107. #: ../../../docs/ansible.md:67
  108. msgid "Finally, you can execute `ansible-playbook …` (or `ansible-playbook --connection=community.docker.nsenter …`) commands as per normal now."
  109. msgstr ""
  110. #: ../../../docs/ansible.md:69
  111. msgid "Running Ansible in a container on another computer (not the Matrix server)"
  112. msgstr ""
  113. #: ../../../docs/ansible.md:82
  114. msgid "The above command tries to mount an SSH key (`$HOME/.ssh/id_rsa`) into the container (at `/root/.ssh/id_rsa`). If your SSH key is at a different path (not in `$HOME/.ssh/id_rsa`), adjust that part."
  115. msgstr ""
  116. #: ../../../docs/ansible.md:88
  117. msgid "Finally, you execute `ansible-playbook …` commands as per normal now."
  118. msgstr ""
  119. #: ../../../docs/ansible.md:90
  120. msgid "If you don't use SSH keys for authentication"
  121. msgstr ""
  122. #: ../../../docs/ansible.md:92
  123. msgid "If you don't use SSH keys for authentication, simply remove that whole line (`-v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa:ro`)."
  124. msgstr ""
  125. #: ../../../docs/ansible.md:94
  126. msgid "To authenticate at your server using a password, you need to add a package. So, when you are in the shell of the ansible docker container (the previously used `docker run -it …` command), run:"
  127. msgstr ""
  128. #: ../../../docs/ansible.md:100
  129. msgid "Then, to be asked for the password whenever running an `ansible-playbook` command add `--ask-pass` to the arguments of the command."
  130. msgstr ""
  131. #: ../../../docs/ansible.md:102
  132. msgid "Resolve directory ownership issues"
  133. msgstr ""
  134. #: ../../../docs/ansible.md:104
  135. msgid "Because you're `root` in the container running Ansible and this likely differs fom the owner (your regular user account) of the playbook directory outside of the container, certain playbook features which use `git` locally may report warnings such as:"
  136. msgstr ""
  137. #: ../../../docs/ansible.md:106
  138. msgid "fatal: unsafe repository ('/work' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /work"
  139. msgstr ""
  140. #: ../../../docs/ansible.md:110
  141. msgid "These errors can be resolved by making `git` trust the playbook directory by running `git config --global --add safe.directory /work`"
  142. msgstr ""