さくらのVPS
標準OS:CentOS7 x86_64
を新規追加した状態からのAWXセットアップ作業
cat /etc/redhat-release
# CentOS Linux release 7.7.1908 (Core)
yum update
yum install https://centos7.iuscommunity.org/ius-release.rpm
yum install python36 python36-pip python36-devel
pip3 install --upgrade pip
reboot
pip3 install ansible
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io
systemctl enable docker
systemctl start docker
pip install docker
yum -y install perl-TermReadKey perl-Error libsecret
yum --disablerepo=* --enablerepo=ius -y install git2u
👆ここでエラー
yum remove git
yum --disablerepo=* --enablerepo=ius -y install git2u
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install -y nodejs
pip install docker-compose
git clone https://github.com/ansible/awx
cd awx/installer/
ansible-playbook -i inventory install.yml
👆ここでエラー
ailed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on ik1-414-39139.vs.sakura.ne.jp's Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: No module named requests.exceptions"
./installer/inventory書き換え
/awx/installer/inventory
localhost ansible_connection=local ansible_python_interpreter="/usr/bin/python3"
ansible-playbook -i inventory install.yml
