You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation of the project for both development and production in containers is completely automated with Ansible.
Begin by installing both the ansible and python3 packages.
If you have an older operating system that does not yet support python3, you may struggle to deploy the application on OpenShift in the cloud. The OpenShift Ansible modules seem to require python3 as the system library, so I recommend updating your operating system to something more recent, for example CentOS8 or RHEL8.
On older operating systems, to deploy the development applications you might want to configure ansible for python2.
To deploy to OpenShift, you will want to configure ansible to point to python3.
You might update your ansible configuration like this to make it work:
sudo vim /etc/ansible/ansible.cfg
[defaults]
interpreter_python=/usr/bin/python3
Your dependencies might be different on an older operating system.
For ansible to run commands, it needs to be able to ssh and run commands as sudo. For that, make sure the sshd service is started and enabled after a reboot. Also test an ssh connection to your hostname to make sure the host is accepted.
systemctl status sshd
sudo systemctl start sshd
sudo systemctl enable sshd
systemctl status sshd
ssh $HOSTNAMEexit
Ansible training.
For training on ansible and automation, I recommend the following Red Hat course.
By completing the course and taking the exam, you can be a Red Hat Certified Specialist in Ansible Automation.
The installation of the project for both development and production in containers is completely automated with Ansible.
Begin by installing both the ansible and python3 packages.
If psycopg2 does not install, run:
Ansible on older operating systems.
If you have an older operating system that does not yet support python3, you may struggle to deploy the application on OpenShift in the cloud. The OpenShift Ansible modules seem to require python3 as the system library, so I recommend updating your operating system to something more recent, for example CentOS8 or RHEL8.
On older operating systems, to deploy the development applications you might want to configure ansible for python2.
To deploy to OpenShift, you will want to configure ansible to point to python3.
You might update your ansible configuration like this to make it work:
Your dependencies might be different on an older operating system.
Setup ssh on your computer for ansible to connect
For ansible to run commands, it needs to be able to ssh and run commands as sudo. For that, make sure the sshd service is started and enabled after a reboot. Also test an ssh connection to your hostname to make sure the host is accepted.
Ansible training.
For training on ansible and automation, I recommend the following Red Hat course.
By completing the course and taking the exam, you can be a Red Hat Certified Specialist in Ansible Automation.
https://www.redhat.com/en/services/training/do407-automation-ansible-i
The text was updated successfully, but these errors were encountered: