Ansible Tower / Automation Platform Install / Upgrade NOTES

As root:

#Remove old ‘latest’

rm ansible-tower-setup-bundle-latest.el8.tar.gz

#Run a backup

ansible-tower-setup-bundle-n.n.n-n/setup.sh -b

#Copy the backup to /root I remove the colons in the cp

cp ansible-tower-setup-bundle-n.n.n-n/tower-backup-2022-05-26-13\:28\:57.tar.gz /root/tower-backup-2022-05-26-13-28-57.tar.gz

#Copy the inventory to /root

cp ansible-tower-setup-bundle-n.n.n-n/inventory /root

#get the new latest

wget https://releases.ansible.com/ansible-tower/setup-bundle/ansible-tower-setup-bundle-latest.el8.tar.gz

#Un-tar it

tar xzvf ansible-tower-setup-bundle-latest.el8.tar.gz

#Copy inventory to latest

cp inventory ansible-tower-setup-bundle-n.n.n-n/

#Upgrade

ansible-tower-setup-bundle-n.n.n-n/setup.sh

Chat with us on Discord

 

Installing Ansible Tower – NOTES

##Get the tar to /root

wget https://releases.ansible.com/ansible-tower/setup-bundle/ansible-tower-setup-bundle-latest.el8.tar.gz

## Make Sure your hosts file has it self in it

vi /etc/hosts

192.168.1.5 localhost myservername myservername.fqdn

##untar it

tar xzvf ansible-tower-setup-bundle-latest.el8.tar.gz

##get in the directory

cd ansible-tower-setup-bundle-n.n.n.n/

##edit the inventory file

vi inventory

##EDIT

[automationcontroller]

vmyservername.fqdn ansible_connection=local

[all:vars]

admin_password=’PASSWORD_GOES_HERE’

pg_password=’PASSWORD_GOES_HERE’

automationhub_admin_password=’PASSWORD_GOES_HERE’

automationhub_pg_password=’PASSWORD_GOES_HERE’

#save

:wq

##Attach the subscription

# subscription-manager list –available –all | grep “Ansible Automation Platform” -B 3 -A 6

subscription-manager attach –pool=<pool_id>

##run setup

./setup.sh

##################################################

NOTES:

https://docs.ansible.com/ansible-tower/latest/html/quickinstall/prepare.html#prerequisites-and-requirements

18. Bubblewrap functionality and variables — Ansible Tower Administration Guide v3.8.3

##FOR Ansible Automation Platform:

sudo vi /etc/sysctl.d/52-app.conf

#added for AAP

user.max_user_namespaces=15000

## sudo sysctl –system or reboot

##To Verify:

cat /proc/sys/user/max_user_namespaces

or

dzdo sysctl user.max_user_namespaces=15000

user.max_user_namespaces = 15000

Chat with us on Discord

Installing Cgit on CentOS 7

Get all the packages installed:

sudo yum install git-all httpd perl-Time-HiRes cgit composer highlight httpd-tools mariadb mariadb-server mod_ssl openssl pandoc patch php php-gd php-intl php-mysql php-tidy php-xcache php-xml python-markdown python-pygments

Set up the git user:

sudo /usr/sbin/groupadd git

sudo /usr/sbin/useradd -c "git user account" -d /srv/git -m -g git -s /bin/bash git

sudo passwd git

sudo usermod -aG git apache

sudo usermod -aG apache git

sudo usermod -aG git git

Give http a swift restart:

sudo systemctl restart httpd

Edit the cgit repo file to use cgit repos

sudo vi /etc/cgitrc

##and included like this:

include=/etc/cgitrepos

##

Create our first repo

sudo vi /etc/cgitrepos

section=Erik’s Really Cool Stuff

repo.url=erik.git

repo.path=/srv/git/erik.git

repo.desc=Erik repository

repo.owner=erik@Fuck.com

repo.readme=info/about.html

 

make the repo and set the permissions:

sudo mkdir /srv/git/erik.git/

sudo git init --bare /srv/git/erik.git

sudo chmod -R 2775 /srv/git/

sudo chown -R erik.git /srv/git/

Test it

http://yourserver.com/cgit 

git config –global user.name “Erik”

git config –global user.email

git init

git remote add origin 192.168.1.1:/srv/git/erik.git

git add .

git commit -m “Initial commit”

git push -u origin master

 

Troubleshooting:

sudo systemctl stop httpd

sudo rm -f /var/cache/cgit/*

sudo systemctl start httpd
Copy Protected by Chetan's WP-Copyprotect.