#1. package download and uncompress #http://releases.ansible.com/ansible-tower/setup-bundle wget -P /root http://10.245.254.93/linux/soft/ansible/ansible-tower-setup-bundle-3.1.1-1.el7.tar.gz tar zxpf /root/ansible-tower-setup-bundle-3.1.1-1.el7.tar.gz -C /opt ln -s /opt/ansible-tower-setup-bundle-3.1.1-1.el7 /opt/ansible-tower #2. update selinux-policy cat <<EOF> /etc/yum.repos.d/2tower.repo [update] name=update 7.x baseurl=http://10.245.254.93/linux/rhel/update/rhel7 enabled=1 gpgcheck=0 EOF yum -y update selinux-policy #3. config tower password sed -i "s#password=''#password='admin'#g" /opt/ansible-tower/inventory #4. modify repo conf from copy to make links, speed up for setup sed -i '108c\ command: rm -f /var/lib/tower-bundle' /opt/ansible-tower/roles/packages_el/tasks/install_deps.yml sed -i '114c\ command: ln -s /opt/ansible-tower/bundle/repos /var/lib/tower-bundle' /opt/ansible-tower/roles/packages_el/tasks/install_deps.yml sed -i 115,116d /opt/ansible-tower/roles/packages_el/tasks/install_deps.yml sed -i 109,110d /opt/ansible-tower/roles/packages_el/tasks/install_deps.yml #5. delete /opt/ansible-tower/install.yml , TWO firewall task sed -i 127,134d /opt/ansible-tower/install.yml sed -i 94,99d /opt/ansible-tower/install.yml # modify ansible-palybook(/opt/ansible-tower/setup.sh) option -vvv cd /opt/ansible-tower ./setup.sh # over.
http://www.bubuko.com/infodetail-1134158.html
https://kionf.com/2017/07/24/linux-tower/html