1
---
- name: Update repositories cache
apt: update_cache=yes
- name: Install build-essential
apt: name=build-essential state=present
- name: Disable SELinux
selinux: state=disabled
結果は:
TASK [common : Update repositories cache] ***************************************************************************************************************************************************************************************************
changed: [server]
TASK [common : Install build-essential] *****************************************************************************************************************************************************************************************************
ok: [server]
TASK [common : Disable SELinux] *************************************************************************************************************************************************************************************************************
fatal: [server]: FAILED! => {"changed": false, "failed": true, "msg": "libselinux-python required for this module"}
私はlibselinux-python
を見つけることを試みたが、存在しないように思えます。 python-selinux
のような他のライブラリを試してみると、システムにインストールできませんでした。
私はそれを試みましたが、それは言った: 'fatal:[server]:FAILED! => {"changed":false、 "failed":true、 "msg": "libselinux-pythonに一致するパッケージはありません"} '。 –
@cloud_cloudこれは役に立ちます。http://packages.ubuntu.com/source/trusty-updates/libselinux –
どうもありがとうございました。しかし、今回は: '致命的:[rancherserver]:失敗しました! "module_stderr": "192.168.33.111への共有接続が閉じられました。\ r \ n"、 "module_stdout": "トレースバック(最新の呼び出し最後):\ r \ nファイル\ "/ tmp/ansible_T58IMt/ansible_module _selinux.py \"、 '。 –