付録D アップグレード後の Playbook


このセクションでは、移行後にすべての Automation controller ノードで Automation controller UI にアクセスできない場合に、実行する必要がある Ansible Playbook を紹介します。この Playbook は、4章インフラストラクチャーの移行 セクションで説明されている SELinux コンテキストおよび証明書の不一致の問題に対応します。

以下の Ansible Playbook のコンテンツをコピーし、圧縮されていないインストーラーディレクトリー内の post_upgrade_playbook.yml というファイルに配置します。

注記

このディレクトリーはインストーラーインベントリーファイルで設定され、この Playbook はインストーラーインベントリーを使用して Automation controller ノードにいくつかの変更を加えます。

post_upgrade_playbook.yml

---
- name: Play to apply workaround to known issues in upgrade
  hosts: automationcontroller
  become: true
  tasks:
    - block:
      - name: Remove certs from all the controllers
        file:
          name: "{{ item }}"
          state: absent
        loop:
          - /etc/tower/tower.cert
          - /etc/tower/tower.key
      - name: Role to create new certs and copy to all controllers
        include_role:
          name: ansible.automation_platform_installer.nginx
      when:
        - automation_platform_version is version('2.1.1', '<=')
    - name: Add to targeted policy and apply selinux policy to controller dirs
      ansible.builtin.command: "{{ item }}"
      loop:
        - semodule -s targeted -i /usr/share/selinux/targeted/automation-controller.pp
        - /sbin/restorecon -R /var/lib/awx/venv /var/lib/awx/job_status /var/run/tower
    - name: Restart the controller service
      service:
        name: automation-controller
        state: restarted
Copy to Clipboard Toggle word wrap

コマンドを実行して、コントローラーノードで Playbook を実行します。

$ ansible-playbook -i inventory.new.ini post_upgrade_playbook.yml
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る