0
0

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 5 years have passed since last update.

備忘録 さくらのVPSにAWXセットアップ

0
Last updated at Posted at 2019-12-23

さくらの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

起動

無題.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?