{"id":343756,"date":"2023-01-10T15:02:26","date_gmt":"2023-01-10T15:02:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=343756"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=343756","title":{"rendered":"<span>Ansible: 30 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f DevOps-\u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u043e\u0432 (\u0447\u0430\u0441\u0442\u044c 3)<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/895\/111\/405\/895111405e754de49dc733336ace20f0.png\" width=\"837\" height=\"473\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/895\/111\/405\/895111405e754de49dc733336ace20f0.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/707130\/\">\u043f\u0435\u0440\u0432\u043e\u0439<\/a> \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043c\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u044f\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445. \u0412\u043e <a href=\"https:\/\/faun.pub\/ansible-30-most-important-modules-for-devops-professional-part-2-bb3f9739898e\">\u0432\u0442\u043e\u0440\u043e\u0439<\/a> \u0447\u0430\u0441\u0442\u0438 \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0435\u0440\u0438\u0438 \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c \u043e \u043c\u043e\u0434\u0443\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (\u043c\u043e\u0434\u0443\u043b\u044c service), \u043c\u043e\u0434\u0443\u043b\u044f\u0445 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 (\u043c\u043e\u0434\u0443\u043b\u044c user \u0438 \u043c\u043e\u0434\u0443\u043b\u044c group), \u043c\u043e\u0434\u0443\u043b\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f cron (\u043c\u043e\u0434\u0443\u043b\u044c cron), \u043c\u043e\u0434\u0443\u043b\u0435 \u043f\u0435\u0447\u0430\u0442\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 (\u043c\u043e\u0434\u0443\u043b\u044c debug) \u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u0445, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0440\u043e\u043b\u0438 (\u043c\u043e\u0434\u0443\u043b\u044c include_vars \u0438 \u043c\u043e\u0434\u0443\u043b\u044c include_role).<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c\u2026<\/p>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c service <\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c service \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\/\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\/\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\/\u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c. \u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Windows \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c win_service.  <\/p>\n<pre><code>--- - name: service module   hosts: all   tasks:   - name: Start service httpd, if not started     service:       name: httpd       state: started    - name: Stop service httpd, if started     service:       name: httpd       state: stopped    - name: Restart service httpd, in all cases     service:       name: httpd       state: restarted    - name: Reload service httpd, in all cases     service:       name: httpd       state: reloaded<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c user <\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c user \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445. \u041d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b useradd \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f, usermod \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 userdel \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0433\u0440\u0443\u043f\u043f\u0443, \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443, \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u0442.\u0434. \u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Windows \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c win_user.  <\/p>\n<pre><code>--- - name: user module   hosts: all   tasks:   - name: Add the user 'johnd' with a specific uid and group of 'admin'     user:       name: johnd       comment: John Doe       uid: 1040       group: admin    - name: Add the user 'james' with a bash shell, appending the group 'admins' and 'developers' to the user's groups     user:       name: james       shell: \/bin\/bash       groups: admins,developers       append: yes    - name: Remove the user 'johnd'     user:       name: johnd       state: absent       remove: yes    - name: Create a 2048-bit SSH key for user jsmith in ~jsmith\/.ssh\/id_rsa     user:       name: jsmith       generate_ssh_key: yes       ssh_key_bits: 2048       ssh_key_file: .ssh\/id_rsa    - name: Added a consultant whose account you want to expire     user:      name: james18      shell: \/bin\/zsh      groups: developers      expires: 1422403387<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c group<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c group \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 groupadd \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, groupmod \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 groupdel \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0433\u0440\u0443\u043f\u043f. \u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Windows \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c win_group.  <\/p>\n<pre><code>--- - name: group module   hosts: all   tasks:   - name: Ensure group \"somegroup\" exists     group:       name: somegroup       state: present    - name: Ensure group \"docker\" exists with correct gid     group:       name: docker       state: present       gid: 1750   - name: deleting a group     group:       name: groupA       state: absent<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c cron<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c cron \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 crontab \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u044b.<\/p>\n<pre><code>--- - name: cron module   hosts: all   tasks:   - name: Ensure a job that runs at 2 and 5 exists. Creates an entry like \"0 5,2 * * sh script.sh\"     cron:       name: \"check dirs\"       minute: \"0\"       hour: \"5,2\"       job: \"sh script.sh\"   - name: 'Delete a job from the crontab'     cron:       name: \"an old job\"       state: absent   - name: Creates an entry like \"APP_HOME=\/srv\/app\" and insert it after PATH declaration     cron:       name: APP_HOME       env: yes       job: \/srv\/app       insertafter: PATH<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c debug<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c debug \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e msg \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e var \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/p>\n<pre><code>--- - name: debug module   hosts: all   tasks:   - name: Print a simple statement       debug:       msg: \"Hello World! A custom message\"   - name: Get uptime information     shell: \/usr\/bin\/uptime     register: result    - name: Print return information from the previous task     debug:       var: result       verbosity: 2<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c include_vars<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c include_vars \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u043b\u044e\u0431\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e set_fact, \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e include_vars.  <\/p>\n<pre><code>--- - name: include_vars module   hosts: all   tasks:   - name: include a variable file     include_vars:        file: name_vars.yml   - name: include a variable file conditionally     include_vars:        file: vars-Debian.yml     when: ansible_os_family == 'Debian'   - name: Include all .yaml files in vars directory except bastion.yaml     include_vars:       dir: vars       ignore_files:         - 'bastion.yaml'       extensions:         - 'yaml' <\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c include_rules<\/h2>\n<p>\u042d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.  <\/p>\n<pre><code>--- - name: include_roles module   hosts: all   tasks:   - name: include role myrole     include_role:       name: myrole   - name: Run tasks\/other.yaml instead of main.yaml     include_role:       name: myrole       tasks_from: other   - name: Pass variables to role     include_role:       name: myrole     vars:       rolevar1: value from task   - name: Conditional role     include_role:       name: myrole     when: not idontwanttorun<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0430\u043c\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 Ansible. \u0421 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c IT-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0443 IT-\u0441\u0440\u0435\u0434\u0443.\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0ee\/91d\/337\/0ee91d337903bd5c4b7879104488149a.png\" width=\"780\" height=\"100\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0ee\/91d\/337\/0ee91d337903bd5c4b7879104488149a.png\"\/><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/slurm.io\/ansible?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=ansible&amp;utm_content=article_10-01-2023&amp;utm_term=annavanna22\"><strong><u>\u041a\u0443\u0440\u0441 \u00abAnsible: Infrastructure as Code\u00bb<\/u><\/strong><\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/965\/4ec\/fcd\/9654ecfcdeef7ef39568d2cc5549a89d.png\" width=\"780\" height=\"100\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/965\/4ec\/fcd\/9654ecfcdeef7ef39568d2cc5549a89d.png\"\/><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/slurm.io\/devops-tools-to-dev?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=devops-tools-to-dev&amp;utm_content=article_10-01-2023&amp;utm_term=annavanna22\"><strong><u>\u041a\u0443\u0440\u0441 \u00abDevOps Tools\u00bb<\/u><\/strong><\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/709860\/\"> https:\/\/habr.com\/ru\/company\/southbridge\/blog\/709860\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/707130\/\">\u043f\u0435\u0440\u0432\u043e\u0439<\/a> \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043c\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u044f\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445. \u0412\u043e <a href=\"https:\/\/faun.pub\/ansible-30-most-important-modules-for-devops-professional-part-2-bb3f9739898e\">\u0432\u0442\u043e\u0440\u043e\u0439<\/a> \u0447\u0430\u0441\u0442\u0438 \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0435\u0440\u0438\u0438 \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c \u043e \u043c\u043e\u0434\u0443\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (\u043c\u043e\u0434\u0443\u043b\u044c service), \u043c\u043e\u0434\u0443\u043b\u044f\u0445 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 (\u043c\u043e\u0434\u0443\u043b\u044c user \u0438 \u043c\u043e\u0434\u0443\u043b\u044c group), \u043c\u043e\u0434\u0443\u043b\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f cron (\u043c\u043e\u0434\u0443\u043b\u044c cron), \u043c\u043e\u0434\u0443\u043b\u0435 \u043f\u0435\u0447\u0430\u0442\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 (\u043c\u043e\u0434\u0443\u043b\u044c debug) \u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u0445, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0440\u043e\u043b\u0438 (\u043c\u043e\u0434\u0443\u043b\u044c include_vars \u0438 \u043c\u043e\u0434\u0443\u043b\u044c include_role).<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c\u2026<\/p>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c service <\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c service \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\/\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\/\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\/\u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c. \u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Windows \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c win_service.  <\/p>\n<pre><code>--- - name: service module   hosts: all   tasks:   - name: Start service httpd, if not started     service:       name: httpd       state: started    - name: Stop service httpd, if started     service:       name: httpd       state: stopped    - name: Restart service httpd, in all cases     service:       name: httpd       state: restarted    - name: Reload service httpd, in all cases     service:       name: httpd       state: reloaded<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c user <\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c user \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445. \u041d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b useradd \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f, usermod \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 userdel \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0433\u0440\u0443\u043f\u043f\u0443, \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443, \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u0442.\u0434. \u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Windows \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c win_user.  <\/p>\n<pre><code>--- - name: user module   hosts: all   tasks:   - name: Add the user 'johnd' with a specific uid and group of 'admin'     user:       name: johnd       comment: John Doe       uid: 1040       group: admin    - name: Add the user 'james' with a bash shell, appending the group 'admins' and 'developers' to the user's groups     user:       name: james       shell: \/bin\/bash       groups: admins,developers       append: yes    - name: Remove the user 'johnd'     user:       name: johnd       state: absent       remove: yes    - name: Create a 2048-bit SSH key for user jsmith in ~jsmith\/.ssh\/id_rsa     user:       name: jsmith       generate_ssh_key: yes       ssh_key_bits: 2048       ssh_key_file: .ssh\/id_rsa    - name: Added a consultant whose account you want to expire     user:      name: james18      shell: \/bin\/zsh      groups: developers      expires: 1422403387<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c group<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c group \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0443\u0437\u043b\u0430\u0445. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 groupadd \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, groupmod \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 groupdel \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0433\u0440\u0443\u043f\u043f. \u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Windows \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c win_group.  <\/p>\n<pre><code>--- - name: group module   hosts: all   tasks:   - name: Ensure group \"somegroup\" exists     group:       name: somegroup       state: present    - name: Ensure group \"docker\" exists with correct gid     group:       name: docker       state: present       gid: 1750   - name: deleting a group     group:       name: groupA       state: absent<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c cron<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c cron \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 crontab \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u044b.<\/p>\n<pre><code>--- - name: cron module   hosts: all   tasks:   - name: Ensure a job that runs at 2 and 5 exists. Creates an entry like \"0 5,2 * * sh script.sh\"     cron:       name: \"check dirs\"       minute: \"0\"       hour: \"5,2\"       job: \"sh script.sh\"   - name: 'Delete a job from the crontab'     cron:       name: \"an old job\"       state: absent   - name: Creates an entry like \"APP_HOME=\/srv\/app\" and insert it after PATH declaration     cron:       name: APP_HOME       env: yes       job: \/srv\/app       insertafter: PATH<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c debug<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c debug \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e msg \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e var \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/p>\n<pre><code>--- - name: debug module   hosts: all   tasks:   - name: Print a simple statement       debug:       msg: \"Hello World! A custom message\"   - name: Get uptime information     shell: \/usr\/bin\/uptime     register: result    - name: Print return information from the previous task     debug:       var: result       verbosity: 2<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c include_vars<\/h2>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c include_vars \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u043b\u044e\u0431\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e set_fact, \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e include_vars.  <\/p>\n<pre><code>--- - name: include_vars module   hosts: all   tasks:   - name: include a variable file     include_vars:        file: name_vars.yml   - name: include a variable file conditionally     include_vars:        file: vars-Debian.yml     when: ansible_os_family == 'Debian'   - name: Include all .yaml files in vars directory except bastion.yaml     include_vars:       dir: vars       ignore_files:         - 'bastion.yaml'       extensions:         - 'yaml' <\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c include_rules<\/h2>\n<p>\u042d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.  <\/p>\n<pre><code>--- - name: include_roles module   hosts: all   tasks:   - name: include role myrole     include_role:       name: myrole   - name: Run tasks\/other.yaml instead of main.yaml     include_role:       name: myrole       tasks_from: other   - name: Pass variables to role     include_role:       name: myrole     vars:       rolevar1: value from task   - name: Conditional role     include_role:       name: myrole     when: not idontwanttorun<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0430\u043c\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 Ansible. \u0421 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c IT-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0443 IT-\u0441\u0440\u0435\u0434\u0443.\u00a0<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/slurm.io\/ansible?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=ansible&amp;utm_content=article_10-01-2023&amp;utm_term=annavanna22\"><strong><u>\u041a\u0443\u0440\u0441 \u00abAnsible: Infrastructure as Code\u00bb<\/u><\/strong><\/a><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/slurm.io\/devops-tools-to-dev?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=devops-tools-to-dev&amp;utm_content=article_10-01-2023&amp;utm_term=annavanna22\"><strong><u>\u041a\u0443\u0440\u0441 \u00abDevOps Tools\u00bb<\/u><\/strong><\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/709860\/\"> https:\/\/habr.com\/ru\/company\/southbridge\/blog\/709860\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-343756","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=343756"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343756\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=343756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=343756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=343756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}