{"id":370542,"date":"2024-05-21T04:27:37","date_gmt":"2024-05-21T04:27:37","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=370542"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=370542","title":{"rendered":"<span>\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0435\u0440\u043c\u0430 1C \u043d\u0430 x2go<\/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<p> \u0418\u0442\u0430\u043a, \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0442\u0438\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0435 \u043d\u0435\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u044b\u043c \u043a\u0430\u0442\u043a\u043e\u043c. \u0412\u043d\u0435\u0441\u0451\u043c \u0441\u0432\u043e\u0439 \u043f\u043e\u0441\u0438\u043b\u044c\u043d\u044b\u0439 \u0432\u043a\u043b\u0430\u0434.<\/p>\n<p> \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b 1\u0421 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0435\u0440\u043c\u044b. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0442\u0440\u0435\u0432\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0444\u0435\u0440\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u0432, \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Windows.<\/p>\n<p>  \u041d\u043e, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0432\u0435\u044f\u043d\u0438\u044f\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0435\u0440\u043c\u0443 \u043d\u0430 \u041e\u0421 REDOS \u0438 x2go (\u0438\u0437 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041e\u0421). \u0412 \u043a\u043e\u0434\u0435 \u043d\u0438\u0436\u0435 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e REDOS \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e (\u043a\u0440\u043e\u043c\u0435 dnf), \u0440\u0435\u0446\u0435\u043f\u0442 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0431\u0440\u043e\u043a\u0435\u0440, \u0441\u0435\u0441\u0441\u0438\u0438 \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f round-robin. \u0422\u0430\u043a \u0436\u0435, \u0432\u044b\u043b\u0435\u0437\u0430\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0430\u0433\u0438, \u043d\u043e \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 REDOS \u0438\u0434\u0451\u0442 \u043d\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0438 \u043f\u0430\u0442\u0447\u0438\u0442 \u0438\u0445 \u043d\u0435 \u043f\u043e\u043a\u043b\u0430\u0434\u0430\u044f \u0440\u0443\u043a. \u041e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c \u0431\u044b\u043b\u043e \u0432\u044b\u044f\u0441\u043d\u0435\u043d\u043e, \u0447\u0442\u043e \u043d\u0430 Ubuntu x2go \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043b\u0443\u0447\u0448\u0435, \u0430 \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c deb-like \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435, \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0443\u0436\u0435.<\/p>\n<p> \u0418\u0442\u0430\u043a, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u0434\u043b\u044f \u0444\u0435\u0440\u043c\u044b (\u0431\u0440\u043e\u043a\u0435\u0440 \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432) \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0441\u0435\u0442\u044c. \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u0442\u044c \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u0441\u0442\u043e\u043b\u043e\u043c. \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 ansible (\u044d\u0442\u043e \u0443 \u043d\u0430\u0441 \u0442\u0430\u043a, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438 \u0440\u0443\u043a\u0430\u043c\u0438).<\/p>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 ansible. <\/p>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c \u0444\u0430\u0439\u043b\u00a0<strong>\/etc\/ansible\/hosts<\/strong>\u00a0&#8212; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u043b\u043e\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>[br_servers]\u00a0#\u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043b\u044f \u0431\u0440\u043e\u043a\u0435\u0440\u0430, \u0432 \u0438\u043c\u0435\u043d\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u00a0\u0442\u0438\u0440\u0435 \"-\"  redos-ansb-b1 ansible_host=10.10.10.10  [br_servers:vars]\u00a0#\u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0432\u044b\u0448\u0435  ansible_port=22  ansible_user=admin\u00a0#\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445  [ts_servers]\u00a0#\u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043b\u044f ts'\u043e\u0432, \u0432 \u0438\u043c\u0435\u043d\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u00a0\u0442\u0438\u0440\u0435 \"-\"  redos-ansb-t1 ansible_host=10.10.10.20 redos-ansb-t2 ansible_host=10.10.10.30  [ts_servers:vars]\u00a0#\u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0432\u044b\u0448\u0435  ansible_port=22  ansible_user=admin\u00a0#\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 <\/code><\/pre>\n<p> \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u043c\u00a0<strong>ssh-copy-id admin@&lt;ip \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438><\/strong><\/p>\n<p> \u0412\u043e\u0442 \u043a\u043e\u0434 \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 <strong>\/etc\/ansible\/deploy_x2go_BROKER.yml<\/strong> \u0434\u043b\u044f \u0431\u0440\u043e\u043a\u0435\u0440\u0430. <\/p>\n<pre><code>--- - name: deploy_x2go_BROKER   hosts: br_servers   become: yes   become_method: sudo    vars_prompt:     - name: domain_admin_account       prompt: \"\u0418\u043c\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 [account@example.org]\"       private: no      - name: domain_admin_account_pass       prompt: \"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\"       private: true       unsafe: true      - name: subnet_for_share       prompt: \"\u041f\u043e\u0434\u0441\u0435\u0442\u044c \u0433\u0434\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 TS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 [10.10.10.0\/24]\"       private: no      - name: list_ts_server       prompt: \"\u0418\u043c\u0435\u043d\u0430 ts \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e [ts01.example.org,ts02.example.org]\"       private: no      - name: path_to_app       prompt: \"\u041f\u0443\u0442\u044c \u0434\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f [\/opt\/1cv8\/x86_64\/8.3.22.1851\/1cv8c]\"       private: no    vars:      ad_domain: example.org      cur_hostname: \"{{ inventory_hostname }}\"      ad_user: \"{{ domain_admin_account }}\"      ad_user_pswd: \"{{ domain_admin_account_pass }}\"      ad_ou: OU=Computers,OU=Default      dc: rootdc.example.org      ip_broker: \"{{ ansible_default_ipv4.address }}\"    roles:     - {role: 'joinToDomain', tags: 'joinToDomain'}     - {role: 'installx2goBroker', tags: 'installx2goBroker'}     - {role: 'installx2go1Cbroker', tags: 'installx2go1Cbroker'}     - {role: 'changex2goSessionProfiles', tags: 'changex2goSessionProfiles'} <\/code><\/pre>\n<pre><code>cat \/etc\/ansible\/roles\/installx2goBroker\/tasks\/main.yml   - name: Update system     dnf:       name: \"*\"       state: latest    - name: Install 'Printing Client'     dnf: name=\"@Printing Client\"    - name: Install X2go Broker packages     dnf:       name:         - x2gobroker         - x2gobroker-common         - x2gobroker-ssh         - x2gobroker-daemon         - x2gobroker-authservice    - name: HOSTS - Add server     ansible.builtin.lineinfile:       path: \/etc\/hosts       line: \"{{ ip_broker }} x2goserver\"       backup: yes    - name: Creating a key for connecting to ts servers     command: x2gobroker-keygen    - name: Install loadchecker     dnf:       name: x2gobroker-loadchecker    - name: Start and Enable x2gobroker-authservice service     ansible.builtin.service:       name: x2gobroker-authservice       state: started       enabled: yes    - name: Start and Enable x2gobroker-authservice service     ansible.builtin.service:       name: x2gobroker-daemon       state: started       enabled: yes  cat \/etc\/ansible\/roles\/installx2go1Cbroker\/tasks\/main.yml   - name: Install 'NFS'     dnf:       name:         - nfs-utils         - nfs4-acl-tools    - name: Create folder for share     ansible.builtin.file:       path: \/usr\/share\/1C\/config       state: directory    - name: EXPORTS - Add share to system     ansible.builtin.lineinfile:       path: \/etc\/exports       line: \"\/usr\/share\/1C\/config\/ {{ subnet_for_share }}(ro,insecure,nohide,all_squash,anonuid=1000,anongid=1000,no_subtree_check)\"       backup: yes    - name: Copy file ibases.v8i in share folder     copy:       src: \"{{ role_path }}\/files\/ibases.v8i\"       dest: \/usr\/share\/1C\/config\/ibases.v8i    - name: Copy file 1cestart.cfg in share folder     copy:       src: \"{{ role_path }}\/files\/1cestart.cfg\"       dest: \/usr\/share\/1C\/config\/1cestart.cfg    - name: Exportfs     command: exportfs -ra    - name: Start and Enable nfs-service     ansible.builtin.service:       name: nfs-server.service       state: started       enabled: yes  cat \/etc\/ansible\/roles\/changex2goSessionProfiles\/tasks\/main.yml   - name:  Backup file 'x2gobroker-sessionprofiles.conf'     command: cp \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.bak.{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}    - name: Remove old file 'x2gobroker-sessionprofiles.conf'     command: rm \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf    - name: Create new file 'x2gobroker-sessionprofiles.conf'     file:       path: \"\/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf\"       state: touch    - name: Insert APP block in 'x2gobroker-sessionprofiles.conf'     ansible.builtin.blockinfile:       path: \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf       block: |         [x2goserver-1C]         name=1C         host={{ list_ts_server }}         command={{ path_to_app }}         usebrokerpass=true         broker-session-autologin=true         broker-authorized-keys=\/var\/lib\/x2gobroker\/.ssh\/authorized_keys <\/code><\/pre>\n<p> \u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043b\u0435\u0439\u0431\u0443\u043a:<\/p>\n<pre><code>ansible-playbook \/etc\/ansible\/deploy_x2go_BROKER.yml --ask-become-pass<\/code><\/pre>\n<p> \u041e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0440\u043e\u043a\u0435\u0440\u0430. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430.<\/p>\n<p> \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u043e \u043f\u0443\u0442\u0438 &#171;<strong>\/etc\/ansible\/roles\/installx2go1Cts\/files\/<\/strong>&#187; \u043b\u0435\u0436\u0438\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 1\u0421, \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c &#171;<strong>.run&#187;<\/strong>.  \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435(\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0435) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f &#171;setup-thin-8.3.22.1851-x86_64.run&#187;<\/p>\n<p>  \u0412\u043e\u0442 \u043a\u043e\u0434 \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 <strong>\/etc\/ansible\/deploy_x2go_TS.yml<\/strong> \u0434\u043b\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. <\/p>\n<pre><code>--- - name: deploy_x2go_TS   #hosts: '{{ GROUPHOSTS }}'   hosts: ts_servers   become: yes   become_method: sudo    vars_prompt:     - name: domain_admin_account       prompt: \"\u0418\u043c\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 [account@example.com]\"       private: no      - name: domain_admin_account_pass       prompt: \"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\"       private: true       unsafe: true      - name: ip_broker       prompt: \"IP broker\"       private: no      - name: app_distrib_name       prompt: \"\u0418\u043c\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e [setup-thin-8.3.22.1851-x86_64.run]\"       private: no    vars:      ad_domain: example.com      cur_hostname: \"{{ inventory_hostname }}\"      ad_user: \"{{ domain_admin_account }}\"      ad_user_pswd: \"{{ domain_admin_account_pass }}\"      ad_ou: OU=Computers,OU=Default      dc: rootdc.example.com    roles:     - {role: 'joinToDomain', tags: 'joinToDomain'}     - {role: 'installx2goTS', tags: 'installx2goTS'}     - {role: 'installx2go1Cts' , tags: 'installx2go1Cts'} <\/code><\/pre>\n<pre><code>cat \/etc\/ansible\/roles\/installx2goTS\/tasks\/main.yml   - name: Update system     dnf:       name: \"*\"       state: latest    - name: Install 'Printing Client'     dnf: name=\"@Printing Client\"    - name: Install X2go Server packages     dnf:       name:         - x2gobroker         - x2goserver         - x2goserver-printing         - cups-x2go         - x2goserver-xsession    - name: HOSTS - Add broker server     ansible.builtin.lineinfile:       path: \/etc\/hosts       line: \"{{ ip_broker }} x2goserver\"       backup: yes    - name: Start and Enable x2gocleansessions service     ansible.builtin.service:       name: x2gocleansessions       state: started       enabled: yes    - name: Install 'x2gobroker-agent'     dnf:       name: x2gobroker-agent    - name: Create folder for certs     ansible.builtin.file:       path: \/var\/lib\/x2gobroker\/       state: directory    - name: Create pubkeyauthorizer     command: \"x2gobroker-pubkeyauthorizer --broker-url http:\/\/{{ ip_broker }}:8080\/pubkeys\/\"  cat \/etc\/ansible\/roles\/installx2go1Cts\/tasks\/main.yml   - name: Copy distrib 1C     copy:       src: \"{{ role_path }}\/files\/setup-thin-8.3.22.1851-x86_64.run\"       dest: \/tmp\/setup-thin-8.3.22.1851-x86_64.run       mode: 777    - name: Install 1C     command: \"\/tmp\/setup-thin-8.3.22.1851-x86_64.run --mode unattended\"    - name: Remove distrib 1C     ansible.builtin.file:       path: \/tmp\/setup-thin-8.3.22.1851-x86_64.run       state: absent    - name: Install 'nfs-utils'     dnf: name=nfs-utils    - name: FSTAB - Add broker server     ansible.builtin.lineinfile:       path: \/etc\/fstab       line: \"{{ ip_broker }}:\/usr\/share\/1C\/config\/    \/mnt\/1C\/config\/              nfs     defaults,auto  \u00a00\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00\"       backup: yes    - name: Create folder for mount  share     ansible.builtin.file:       path: \/mnt\/1C\/config\/       state: directory       mode: '777'    - name: Mount an NFS share     command: \"mount -t nfs {{ ip_broker }}:\/usr\/share\/1C\/config\/ \/mnt\/1C\/config\/\"    - name: Create folder into SKEL     ansible.builtin.file:       path: \/etc\/skel\/.1C\/1cestart       state: directory    - name: Create limlink     command: \"ln -s \/mnt\/1C\/config\/1cestart.cfg \/etc\/skel\/.1C\/1cestart\/1cestart.cfg\" <\/code><\/pre>\n<p> \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:<\/p>\n<pre><code>ansible-playbook \/etc\/ansible\/deploy_x2go_TS.yml --ask-become-pass<\/code><\/pre>\n<p> \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u0444\u0435\u0440\u043c\u0435 x2go \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442 (x2goClient) \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 &#171;(U) Deploy x2goClient and lnk&#187;, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439:<\/p>\n<ul>\n<li>\n<p> \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f &#171;<strong>%userprofile%\\AppData\\Local\\x2goclient<\/strong>&#171;<\/p>\n<\/li>\n<li>\n<p> \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0439 \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u00a0<strong>%DesktopDir%\\x2goClient.lnk<\/strong><\/p>\n<\/li>\n<\/ul>\n<p> \u0412 \u044f\u0440\u043b\u044b\u043a\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u00a0<strong>&#8212;broker-url<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0431\u0440\u043e\u043a\u0435\u0440 \u0444\u0435\u0440\u043c\u044b \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &#8212;broker-url=http:\/\/broker-01.example.com:8080\/plain\/).<\/p>\n<p> \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0432 \u0441\u0435\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0435\u0440\u043c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u044f\u0440\u043b\u044b\u043a \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430, \u0437\u0430\u043f\u0438\u0441\u044c \u0432 GPP (User Configuration \u2013> Preferences -> Windows Settings -> Files) \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c &#171;\u043d\u0430\u0446\u0435\u043b\u0438\u0432\u0430\u043d\u0438\u0435&#187; \u043d\u0430 AD \u0433\u0440\u0443\u043f\u043f\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043d\u043e\u0432\u043e\u0439 \u0444\u0435\u0440\u043c\u0435.<\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043b\u043e\u0434\u043e\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430 \u043c\u043e\u0438\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432, \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434 \u043c\u043e\u0438\u043c \u0447\u0443\u0442\u043a\u0438\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c. \u0412 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u0433\u043e\u0432\u043e\u0440\u044e \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u043c\u043e\u0438\u043c \u0431\u0440\u0430\u0432\u044b\u043c \u043f\u0430\u0440\u043d\u044f\u043c, \u043e\u043d\u0438 \u043c\u043e\u043b\u043e\u0434\u0446\u044b!<\/p>\n<p>\u041d\u0443 \u0438 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0434\u0443\u0441\u0430 \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043c\u043e\u0439 <a href=\"https:\/\/t.me\/+Jw-Z35A420YyOTgy\" rel=\"noopener noreferrer nofollow\">\u0422\u0413-\u043a\u0430\u043d\u0430\u043b<\/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\/articles\/799577\/\"> https:\/\/habr.com\/ru\/articles\/799577\/<\/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<p> \u0418\u0442\u0430\u043a, \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0442\u0438\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0435 \u043d\u0435\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u044b\u043c \u043a\u0430\u0442\u043a\u043e\u043c. \u0412\u043d\u0435\u0441\u0451\u043c \u0441\u0432\u043e\u0439 \u043f\u043e\u0441\u0438\u043b\u044c\u043d\u044b\u0439 \u0432\u043a\u043b\u0430\u0434.<\/p>\n<p> \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b 1\u0421 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0435\u0440\u043c\u044b. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0442\u0440\u0435\u0432\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0444\u0435\u0440\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u0432, \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Windows.<\/p>\n<p>  \u041d\u043e, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0432\u0435\u044f\u043d\u0438\u044f\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0435\u0440\u043c\u0443 \u043d\u0430 \u041e\u0421 REDOS \u0438 x2go (\u0438\u0437 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041e\u0421). \u0412 \u043a\u043e\u0434\u0435 \u043d\u0438\u0436\u0435 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e REDOS \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e (\u043a\u0440\u043e\u043c\u0435 dnf), \u0440\u0435\u0446\u0435\u043f\u0442 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0431\u0440\u043e\u043a\u0435\u0440, \u0441\u0435\u0441\u0441\u0438\u0438 \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f round-robin. \u0422\u0430\u043a \u0436\u0435, \u0432\u044b\u043b\u0435\u0437\u0430\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0430\u0433\u0438, \u043d\u043e \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 REDOS \u0438\u0434\u0451\u0442 \u043d\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0438 \u043f\u0430\u0442\u0447\u0438\u0442 \u0438\u0445 \u043d\u0435 \u043f\u043e\u043a\u043b\u0430\u0434\u0430\u044f \u0440\u0443\u043a. \u041e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c \u0431\u044b\u043b\u043e \u0432\u044b\u044f\u0441\u043d\u0435\u043d\u043e, \u0447\u0442\u043e \u043d\u0430 Ubuntu x2go \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043b\u0443\u0447\u0448\u0435, \u0430 \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c deb-like \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435, \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0443\u0436\u0435.<\/p>\n<p> \u0418\u0442\u0430\u043a, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u0434\u043b\u044f \u0444\u0435\u0440\u043c\u044b (\u0431\u0440\u043e\u043a\u0435\u0440 \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432) \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0441\u0435\u0442\u044c. \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u0442\u044c \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u0441\u0442\u043e\u043b\u043e\u043c. \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 ansible (\u044d\u0442\u043e \u0443 \u043d\u0430\u0441 \u0442\u0430\u043a, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438 \u0440\u0443\u043a\u0430\u043c\u0438).<\/p>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 ansible. <\/p>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c \u0444\u0430\u0439\u043b\u00a0<strong>\/etc\/ansible\/hosts<\/strong>\u00a0&#8212; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u043b\u043e\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>[br_servers]\u00a0#\u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043b\u044f \u0431\u0440\u043e\u043a\u0435\u0440\u0430, \u0432 \u0438\u043c\u0435\u043d\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u00a0\u0442\u0438\u0440\u0435 \"-\"  redos-ansb-b1 ansible_host=10.10.10.10  [br_servers:vars]\u00a0#\u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0432\u044b\u0448\u0435  ansible_port=22  ansible_user=admin\u00a0#\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445  [ts_servers]\u00a0#\u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043b\u044f ts'\u043e\u0432, \u0432 \u0438\u043c\u0435\u043d\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u00a0\u0442\u0438\u0440\u0435 \"-\"  redos-ansb-t1 ansible_host=10.10.10.20 redos-ansb-t2 ansible_host=10.10.10.30  [ts_servers:vars]\u00a0#\u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0432\u044b\u0448\u0435  ansible_port=22  ansible_user=admin\u00a0#\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 <\/code><\/pre>\n<p> \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u043c\u00a0<strong>ssh-copy-id admin@&lt;ip \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438><\/strong><\/p>\n<p> \u0412\u043e\u0442 \u043a\u043e\u0434 \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 <strong>\/etc\/ansible\/deploy_x2go_BROKER.yml<\/strong> \u0434\u043b\u044f \u0431\u0440\u043e\u043a\u0435\u0440\u0430. <\/p>\n<pre><code>--- - name: deploy_x2go_BROKER   hosts: br_servers   become: yes   become_method: sudo    vars_prompt:     - name: domain_admin_account       prompt: \"\u0418\u043c\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 [account@example.org]\"       private: no      - name: domain_admin_account_pass       prompt: \"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\"       private: true       unsafe: true      - name: subnet_for_share       prompt: \"\u041f\u043e\u0434\u0441\u0435\u0442\u044c \u0433\u0434\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 TS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 [10.10.10.0\/24]\"       private: no      - name: list_ts_server       prompt: \"\u0418\u043c\u0435\u043d\u0430 ts \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e [ts01.example.org,ts02.example.org]\"       private: no      - name: path_to_app       prompt: \"\u041f\u0443\u0442\u044c \u0434\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f [\/opt\/1cv8\/x86_64\/8.3.22.1851\/1cv8c]\"       private: no    vars:      ad_domain: example.org      cur_hostname: \"{{ inventory_hostname }}\"      ad_user: \"{{ domain_admin_account }}\"      ad_user_pswd: \"{{ domain_admin_account_pass }}\"      ad_ou: OU=Computers,OU=Default      dc: rootdc.example.org      ip_broker: \"{{ ansible_default_ipv4.address }}\"    roles:     - {role: 'joinToDomain', tags: 'joinToDomain'}     - {role: 'installx2goBroker', tags: 'installx2goBroker'}     - {role: 'installx2go1Cbroker', tags: 'installx2go1Cbroker'}     - {role: 'changex2goSessionProfiles', tags: 'changex2goSessionProfiles'} <\/code><\/pre>\n<pre><code>cat \/etc\/ansible\/roles\/installx2goBroker\/tasks\/main.yml   - name: Update system     dnf:       name: \"*\"       state: latest    - name: Install 'Printing Client'     dnf: name=\"@Printing Client\"    - name: Install X2go Broker packages     dnf:       name:         - x2gobroker         - x2gobroker-common         - x2gobroker-ssh         - x2gobroker-daemon         - x2gobroker-authservice    - name: HOSTS - Add server     ansible.builtin.lineinfile:       path: \/etc\/hosts       line: \"{{ ip_broker }} x2goserver\"       backup: yes    - name: Creating a key for connecting to ts servers     command: x2gobroker-keygen    - name: Install loadchecker     dnf:       name: x2gobroker-loadchecker    - name: Start and Enable x2gobroker-authservice service     ansible.builtin.service:       name: x2gobroker-authservice       state: started       enabled: yes    - name: Start and Enable x2gobroker-authservice service     ansible.builtin.service:       name: x2gobroker-daemon       state: started       enabled: yes  cat \/etc\/ansible\/roles\/installx2go1Cbroker\/tasks\/main.yml   - name: Install 'NFS'     dnf:       name:         - nfs-utils         - nfs4-acl-tools    - name: Create folder for share     ansible.builtin.file:       path: \/usr\/share\/1C\/config       state: directory    - name: EXPORTS - Add share to system     ansible.builtin.lineinfile:       path: \/etc\/exports       line: \"\/usr\/share\/1C\/config\/ {{ subnet_for_share }}(ro,insecure,nohide,all_squash,anonuid=1000,anongid=1000,no_subtree_check)\"       backup: yes    - name: Copy file ibases.v8i in share folder     copy:       src: \"{{ role_path }}\/files\/ibases.v8i\"       dest: \/usr\/share\/1C\/config\/ibases.v8i    - name: Copy file 1cestart.cfg in share folder     copy:       src: \"{{ role_path }}\/files\/1cestart.cfg\"       dest: \/usr\/share\/1C\/config\/1cestart.cfg    - name: Exportfs     command: exportfs -ra    - name: Start and Enable nfs-service     ansible.builtin.service:       name: nfs-server.service       state: started       enabled: yes  cat \/etc\/ansible\/roles\/changex2goSessionProfiles\/tasks\/main.yml   - name:  Backup file 'x2gobroker-sessionprofiles.conf'     command: cp \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.bak.{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}    - name: Remove old file 'x2gobroker-sessionprofiles.conf'     command: rm \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf    - name: Create new file 'x2gobroker-sessionprofiles.conf'     file:       path: \"\/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf\"       state: touch    - name: Insert APP block in 'x2gobroker-sessionprofiles.conf'     ansible.builtin.blockinfile:       path: \/etc\/x2go\/broker\/x2gobroker-sessionprofiles.conf       block: |         [x2goserver-1C]         name=1C         host={{ list_ts_server }}         command={{ path_to_app }}         usebrokerpass=true         broker-session-autologin=true         broker-authorized-keys=\/var\/lib\/x2gobroker\/.ssh\/authorized_keys <\/code><\/pre>\n<p> \u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043b\u0435\u0439\u0431\u0443\u043a:<\/p>\n<pre><code>ansible-playbook \/etc\/ansible\/deploy_x2go_BROKER.yml --ask-become-pass<\/code><\/pre>\n<p> \u041e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0440\u043e\u043a\u0435\u0440\u0430. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430.<\/p>\n<p> \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u043e \u043f\u0443\u0442\u0438 &#171;<strong>\/etc\/ansible\/roles\/installx2go1Cts\/files\/<\/strong>&#187; \u043b\u0435\u0436\u0438\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 1\u0421, \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c &#171;<strong>.run&#187;<\/strong>.  \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435(\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0435) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f &#171;setup-thin-8.3.22.1851-x86_64.run&#187;<\/p>\n<p>  \u0412\u043e\u0442 \u043a\u043e\u0434 \u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0430 <strong>\/etc\/ansible\/deploy_x2go_TS.yml<\/strong> \u0434\u043b\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. <\/p>\n<pre><code>--- - name: deploy_x2go_TS   #hosts: '{{ GROUPHOSTS }}'   hosts: ts_servers   become: yes   become_method: sudo    vars_prompt:     - name: domain_admin_account       prompt: \"\u0418\u043c\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 [account@example.com]\"       private: no      - name: domain_admin_account_pass       prompt: \"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\"       private: true       unsafe: true      - name: ip_broker       prompt: \"IP broker\"       private: no      - name: app_distrib_name       prompt: \"\u0418\u043c\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e [setup-thin-8.3.22.1851-x86_64.run]\"       private: no    vars:      ad_domain: example.com      cur_hostname: \"{{ inventory_hostname }}\"      ad_user: \"{{ domain_admin_account }}\"      ad_user_pswd: \"{{ domain_admin_account_pass }}\"      ad_ou: OU=Computers,OU=Default      dc: rootdc.example.com    roles:     - {role: 'joinToDomain', tags: 'joinToDomain'}     - {role: 'installx2goTS', tags: 'installx2goTS'}     - {role: 'installx2go1Cts' , tags: 'installx2go1Cts'} <\/code><\/pre>\n<pre><code>cat \/etc\/ansible\/roles\/installx2goTS\/tasks\/main.yml   - name: Update system     dnf:       name: \"*\"       state: latest    - name: Install 'Printing Client'     dnf: name=\"@Printing Client\"    - name: Install X2go Server packages     dnf:       name:         - x2gobroker         - x2goserver         - x2goserver-printing         - cups-x2go         - x2goserver-xsession    - name: HOSTS - Add broker server     ansible.builtin.lineinfile:       path: \/etc\/hosts       line: \"{{ ip_broker }} x2goserver\"       backup: yes    - name: Start and Enable x2gocleansessions service     ansible.builtin.service:       name: x2gocleansessions       state: started       enabled: yes    - name: Install 'x2gobroker-agent'     dnf:       name: x2gobroker-agent    - name: Create folder for certs     ansible.builtin.file:       path: \/var\/lib\/x2gobroker\/       state: directory    - name: Create pubkeyauthorizer     command: \"x2gobroker-pubkeyauthorizer --broker-url http:\/\/{{ ip_broker }}:8080\/pubkeys\/\"  cat \/etc\/ansible\/roles\/installx2go1Cts\/tasks\/main.yml   - name: Copy distrib 1C     copy:       src: \"{{ role_path }}\/files\/setup-thin-8.3.22.1851-x86_64.run\"       dest: \/tmp\/setup-thin-8.3.22.1851-x86_64.run       mode: 777    - name: Install 1C     command: \"\/tmp\/setup-thin-8.3.22.1851-x86_64.run --mode unattended\"    - name: Remove distrib 1C     ansible.builtin.file:       path: \/tmp\/setup-thin-8.3.22.1851-x86_64.run       state: absent    - name: Install 'nfs-utils'     dnf: name=nfs-utils    - name: FSTAB - Add broker server     ansible.builtin.lineinfile:       path: \/etc\/fstab       line: \"{{ ip_broker }}:\/usr\/share\/1C\/config\/    \/mnt\/1C\/config\/              nfs     defaults,auto  \u00a00\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00\"       backup: yes    - name: Create folder for mount  share     ansible.builtin.file:       path: \/mnt\/1C\/config\/       state: directory       mode: '777'    - name: Mount an NFS share     command: \"mount -t nfs {{ ip_broker }}:\/usr\/share\/1C\/config\/ \/mnt\/1C\/config\/\"    - name: Create folder into SKEL     ansible.builtin.file:       path: \/etc\/skel\/.1C\/1cestart       state: directory    - name:<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-370542","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370542","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=370542"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370542\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}