awx3-如何在Centos7上安装

时间:2019-02-24 17:25:44

标签: ansible-awx

在此处张贴错误的位置,格式错误且没有描述的位置可能是错误的,但是尽管我将分享有关如何在Centos7上安装awx3的信息,但它基于https://www.howtoforge.com/tutorial/centos-ansible-awx-installation/

yum install centos-release-scl-rh epel-release wget -y

wget -O /etc/yum.repos.d/awx-rpm.repo https://copr.fedorainfracloud.org/coprs/mrmeee/ansible-awx/repo/epel-7/mrmeee-ansible-awx-epel-7.repo

rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm

yum install @development postgresql10-server postgresql10 Rabbitmq-server wget memcached nginx ansible ansible-awx.x86_64 rh-python36 python-pip

pip install --upgrade pip

scl启用rh-python36 bash

pip install django-split-settings django-qsstats-magic ansiconv python-memcached asn1crypto asgiref == 1.1.2 asgi_amqp超链接== 17.1.1 Automat == 0.3.0 uwsgi django-radius tacacs_plus onelogin python3-saml

/ usr / pgsql-10 / bin / postgresql-10-setup initdb

ln -s /opt/rh/rh-postgresql10/root/usr/lib64/libpq.so.rh-postgresql10-5 /usr/lib64/libpq.so.rh-postgresql10-5

systemctl启用nginx awx-web awx-daphne awx-cbreceiver awx-channels-worker postgresql-10.service rabbitmq-server memcached

systemctl启动nginx awx-web awx-daphne awx-cbreceiver awx-channels-worker postgresql-10.service rabbitmq-server memcached

sudo -u postgres createuser -S awx

sudo -u postgres创建了b -O awx awx

sudo -u awx / opt / rh / rh-python36 / root / usr / bin / awx-manage迁移

回显“从django.contrib.auth.models导入User; User.objects.create_superuser('admin','root @ localhost','password')” |须藤-u awx / opt / rh / rh-python36 / root / usr / bin / awx-manage shell

sudo -u awx / opt / rh / rh-python36 / root / usr / bin / awx-manage create_preload_data

sudo -u awx / opt / rh / rh-python36 / root / usr / bin / awx-management_instance --hostname = $(主机名)

sudo -u awx / opt / rh / rh-python36 / root / usr / bin / awx-manager_queue --queuename = tower --hostnames = $(hostname)

wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/sunilsankar/awx-build/master/nginx.conf

setenforce 0

systemctl重新启动nginx awx-web awx-daphne awx-cbreceiver awx-channels-worker postgresql-10.service rabbitmq-server memcached

希望它将对某人有所帮助:-)

1 个答案:

答案 0 :(得分:0)

1)用yum安装Ansible

2)创建<> / <> group>

3)将/home/<>/.ssh复制到服务器上的用户

4)还有一个好方法,就是让您的<<> username>〜/ .profile和〜/ .bashrc

具有:导出ANSIBLE_CONFIG = / home / <> / AnsibleFolder 否则,除非您CD进入Ansible文件夹,然后从那里运行ansible命令,否则ansible将读取/etc/ansible/ansible.cfg中的默认ansible.cfg。