3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWXインストール時に「(libselinux-python) aren't installed!」が発生。

Posted at

事象

  • AWXをインストールしようとinstall.ymlを実行すると、以下のエラーが発生。
TASK [local_docker : Create Docker Compose Configuration] ***************************************************
ok: [localhost] => (item=environment.sh)
ok: [localhost] => (item=credentials.py)
failed: [localhost] (item=docker-compose.yml) => {"ansible_loop_var": "item", "changed": false, "checksum": "7672c67601f56377417a0dcaee5cb3349c876e8d", "item": "docker-compose.yml", "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"}
ok: [localhost] => (item=nginx.conf)
  • 環境
    • CentOS Linux release 7.7.1908 (Core)
    • Python 2.7.5

原因

  • AWXインストールに必要となるSE Linuxが見つからない。

対処

  • python2の場合、libselinux-pythonをインストールする。
  • python3の場合、python3-libselinuxをインストールする。
yum -y install libselinux-python
yum -y install python3-libselinux
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?