techtsubame’s blog

備忘録であり、何が起きても責任は取りません

Ansible Automation Platformセットアップ

実施すること

  • ServiceのNodePortを試す
  • 実際にiptablesを見て設定を確認する

参考

rheb.hatenablog.com

実施

準備

ダウンロード

developers.redhat.com

ファイルをインストールホストへ転送

解凍

# tar xzf ansible-automation-platform-setup-bundle-2.4-1-x86_64.tar.gz

インベントリファイル

編集前のバックアップ

# cd ansible-automation-platform-setup-bundle-2.4-1-x86_64
# cp -p inventory{,_org}

編集

# vi inventory
#  diff -U0 inventory_org inventory | cat -n
     1  --- inventory_org   2023-06-26 20:38:54.000000000 +0900
     2  +++ inventory   2024-02-02 19:31:04.569587965 +0900
     3 @@ -12 +12 @@
     4 -
     5 +ホスト名 ansible_connection=local
     6 @@ -42 +42 @@
     7 -admin_password=''
     8 +admin_password='password'
     9 @@ -49 +49 @@
    10 -pg_password=''
    11 +pg_password='pg_password'
    12 @@ -76,2 +76,2 @@
    13 -registry_username=''
    14 -registry_password=''
    15 +registry_username='******'
    16 +registry_password='*******'

セットアップ

# ./setup.sh
- snip -
TASK [Remove stale packages] ***************************************************
ok: [ホスト名] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []}

PLAY RECAP *********************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0
ホスト名                   : ok=386  changed=179  unreachable=0    failed=0    skipped=219  rescued=0    ignored=6

The setup process completed successfully.
Setup log saved to /var/log/tower/setup-2024-02-02-19:35:09.log.

アクセス

対象サーバへアクセス

ダッシュボード確認