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.
 
 

285 regels
9.3 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: 2024-12-16 12:05+0900\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 ""
  28. "This playbook is meant to be run using "
  29. "[Ansible](https://www.ansible.com/)."
  30. msgstr ""
  31. #: ../../../docs/ansible.md:6
  32. msgid ""
  33. "Ansible typically runs on your local computer and carries out tasks on a "
  34. "remote server. If your local computer cannot run Ansible, you can also "
  35. "run Ansible on some server somewhere (including the server you wish to "
  36. "install to)."
  37. msgstr ""
  38. #: ../../../docs/ansible.md:8
  39. msgid "Supported Ansible versions"
  40. msgstr ""
  41. #: ../../../docs/ansible.md:10
  42. msgid ""
  43. "To manually check which version of Ansible you're on, run: `ansible "
  44. "--version`."
  45. msgstr ""
  46. #: ../../../docs/ansible.md:12
  47. msgid ""
  48. "For the **best experience**, we recommend getting the **latest version of"
  49. " Ansible available**."
  50. msgstr ""
  51. #: ../../../docs/ansible.md:14
  52. msgid ""
  53. "We're not sure what's the minimum version of Ansible that can run this "
  54. "playbook successfully. The lowest version that we've confirmed (on "
  55. "2022-11-26) to be working fine is: `ansible-core` (`2.11.7`) combined "
  56. "with `ansible` (`4.10.0`)."
  57. msgstr ""
  58. #: ../../../docs/ansible.md:16
  59. msgid ""
  60. "If your distro ships with an Ansible version older than this, you may run"
  61. " into issues. Consider [Upgrading Ansible](#upgrading-ansible) or [using "
  62. "Ansible via Docker](#using-ansible-via-docker)."
  63. msgstr ""
  64. #: ../../../docs/ansible.md:18
  65. msgid "Upgrading Ansible"
  66. msgstr ""
  67. #: ../../../docs/ansible.md:20
  68. msgid ""
  69. "Depending on your distribution, you may be able to upgrade Ansible in a "
  70. "few different ways:"
  71. msgstr ""
  72. #: ../../../docs/ansible.md:22
  73. msgid ""
  74. "by using an additional repository (PPA, etc.), which provides newer "
  75. "Ansible versions. See instructions for "
  76. "[CentOS](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html"
  77. "#installing-ansible-on-rhel-centos-or-fedora), "
  78. "[Debian](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html"
  79. "#installing-ansible-on-debian), or "
  80. "[Ubuntu](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html"
  81. "#installing-ansible-on-ubuntu) on the Ansible website."
  82. msgstr ""
  83. #: ../../../docs/ansible.md:24
  84. msgid ""
  85. "by removing the Ansible package (`yum remove ansible` or `apt-get remove "
  86. "ansible`) and installing via "
  87. "[pip](https://pip.pypa.io/en/stable/installation/) (`pip install "
  88. "ansible`)."
  89. msgstr ""
  90. #: ../../../docs/ansible.md:26
  91. msgid ""
  92. "If using the `pip` method, do note that the `ansible-playbook` binary may"
  93. " not be on the `$PATH` (https://linuxconfig.org/linux-path-environment-"
  94. "variable), but in some more special location like `/usr/local/bin"
  95. "/ansible-playbook`. You may need to invoke it using the full path."
  96. msgstr ""
  97. #: ../../../docs/ansible.md:28
  98. msgid ""
  99. "**Note**: Both of the above methods are a bad way to run system software "
  100. "such as Ansible. If you find yourself needing to resort to such hacks, "
  101. "please consider reporting a bug to your distribution and/or switching to "
  102. "a sane distribution, which provides up-to-date software."
  103. msgstr ""
  104. #: ../../../docs/ansible.md:30
  105. msgid "Using Ansible via Docker"
  106. msgstr ""
  107. #: ../../../docs/ansible.md:32
  108. msgid ""
  109. "Alternatively, you can run Ansible inside a Docker container (powered by "
  110. "the [devture/ansible](https://hub.docker.com/r/devture/ansible/) Docker "
  111. "image)."
  112. msgstr ""
  113. #: ../../../docs/ansible.md:34
  114. msgid ""
  115. "This ensures that you're using a very recent Ansible version, which is "
  116. "less likely to be incompatible with the playbook."
  117. msgstr ""
  118. #: ../../../docs/ansible.md:36
  119. msgid ""
  120. "You can either [run Ansible in a container on the Matrix server itself"
  121. "](#running-ansible-in-a-container-on-the-matrix-server-itself) or [run "
  122. "Ansible in a container on another computer (not the Matrix server"
  123. ")](#running-ansible-in-a-container-on-another-computer-not-the-matrix-"
  124. "server)."
  125. msgstr ""
  126. #: ../../../docs/ansible.md:38
  127. msgid "Running Ansible in a container on the Matrix server itself"
  128. msgstr ""
  129. #: ../../../docs/ansible.md:40
  130. msgid ""
  131. "To run Ansible in a (Docker) container on the Matrix server itself, you "
  132. "need to have a working Docker installation. Docker is normally installed "
  133. "by the playbook, so this may be a bit of a chicken and egg problem. To "
  134. "solve it:"
  135. msgstr ""
  136. #: ../../../docs/ansible.md:42
  137. msgid ""
  138. "you **either** need to install Docker manually first. Follow [the "
  139. "upstream instructions](https://docs.docker.com/engine/install/) for your "
  140. "distribution and consider setting "
  141. "`matrix_playbook_docker_installation_enabled: false` in your `vars.yml` "
  142. "file, to prevent the playbook from installing Docker"
  143. msgstr ""
  144. #: ../../../docs/ansible.md:43
  145. msgid ""
  146. "**or** you need to run the playbook in another way (e.g. [Running Ansible"
  147. " in a container on another computer (not the Matrix server)](#running-"
  148. "ansible-in-a-container-on-another-computer-not-the-matrix-server)) at "
  149. "least the first time around"
  150. msgstr ""
  151. #: ../../../docs/ansible.md:45
  152. msgid ""
  153. "Once you have a working Docker installation on the server, **clone the "
  154. "playbook** somewhere on the server and configure it as per usual "
  155. "(`inventory/hosts`, `inventory/host_vars/..`, etc.), as described in "
  156. "[configuring the playbook](configuring-playbook.md)."
  157. msgstr ""
  158. #: ../../../docs/ansible.md:47
  159. msgid ""
  160. "You would then need to add `ansible_connection=community.docker.nsenter` "
  161. "to the host line in `inventory/hosts`. This tells Ansible to connect to "
  162. "the \"remote\" machine by switching Linux namespaces with "
  163. "[nsenter](https://man7.org/linux/man-pages/man1/nsenter.1.html), instead "
  164. "of using SSH."
  165. msgstr ""
  166. #: ../../../docs/ansible.md:49
  167. msgid ""
  168. "Alternatively, you can leave your `inventory/hosts` as is and specify the"
  169. " connection type in **each** `ansible-playbook` call you do later, like "
  170. "this: `ansible-playbook --connection=community.docker.nsenter …`"
  171. msgstr ""
  172. #: ../../../docs/ansible.md:51 ../../../docs/ansible.md:71
  173. msgid "Run this from the playbook's directory:"
  174. msgstr ""
  175. #: ../../../docs/ansible.md:63 ../../../docs/ansible.md:84
  176. msgid ""
  177. "Once you execute the above command, you'll be dropped into a `/work` "
  178. "directory inside a Docker container. The `/work` directory contains the "
  179. "playbook's code."
  180. msgstr ""
  181. #: ../../../docs/ansible.md:65 ../../../docs/ansible.md:86
  182. msgid ""
  183. "First, consider running `git config --global --add safe.directory /work` "
  184. "to [resolve directory ownership issues](#resolve-directory-ownership-"
  185. "issues)."
  186. msgstr ""
  187. #: ../../../docs/ansible.md:67
  188. msgid ""
  189. "Finally, you can execute `ansible-playbook …` (or `ansible-playbook "
  190. "--connection=community.docker.nsenter …`) commands as per normal now."
  191. msgstr ""
  192. #: ../../../docs/ansible.md:69
  193. msgid "Running Ansible in a container on another computer (not the Matrix server)"
  194. msgstr ""
  195. #: ../../../docs/ansible.md:82
  196. msgid ""
  197. "The above command tries to mount an SSH key (`$HOME/.ssh/id_rsa`) into "
  198. "the container (at `/root/.ssh/id_rsa`). If your SSH key is at a different"
  199. " path (not in `$HOME/.ssh/id_rsa`), adjust that part."
  200. msgstr ""
  201. #: ../../../docs/ansible.md:88
  202. msgid "Finally, you execute `ansible-playbook …` commands as per normal now."
  203. msgstr ""
  204. #: ../../../docs/ansible.md:90
  205. msgid "If you don't use SSH keys for authentication"
  206. msgstr ""
  207. #: ../../../docs/ansible.md:92
  208. msgid ""
  209. "If you don't use SSH keys for authentication, simply remove that whole "
  210. "line (`-v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa:ro`)."
  211. msgstr ""
  212. #: ../../../docs/ansible.md:94
  213. msgid ""
  214. "To authenticate at your server using a password, you need to add a "
  215. "package. So, when you are in the shell of the ansible docker container "
  216. "(the previously used `docker run -it …` command), run:"
  217. msgstr ""
  218. #: ../../../docs/ansible.md:100
  219. msgid ""
  220. "Then, to be asked for the password whenever running an `ansible-"
  221. "playbook` command add `--ask-pass` to the arguments of the command."
  222. msgstr ""
  223. #: ../../../docs/ansible.md:102
  224. msgid "Resolve directory ownership issues"
  225. msgstr ""
  226. #: ../../../docs/ansible.md:104
  227. msgid ""
  228. "Because you're `root` in the container running Ansible and this likely "
  229. "differs fom the owner (your regular user account) of the playbook "
  230. "directory outside of the container, certain playbook features which use "
  231. "`git` locally may report warnings such as:"
  232. msgstr ""
  233. #: ../../../docs/ansible.md:106
  234. msgid ""
  235. "fatal: unsafe repository ('/work' is owned by someone else) To add an "
  236. "exception for this directory, call: git config --global --add "
  237. "safe.directory /work"
  238. msgstr ""
  239. #: ../../../docs/ansible.md:110
  240. msgid ""
  241. "These errors can be resolved by making `git` trust the playbook directory"
  242. " by running `git config --global --add safe.directory /work`"
  243. msgstr ""