Needing Help in Solving Dependencies

Hi Members,
I know that this Question is not related to Asterisk but I am stuck with this pre-requisite step for more than a Month.

Lets come to the issue…

Actually I am reading a Book called: Asterisk: The Definitive Guide (Open Source Telephony for the Enterprise) - 5th Edition

In that book, The Author has given a Group command and a Playbook.

I have given the Actual group command below (as it is in the Book):
sudo yum -y update &&
sudo yum -y install epel-release &&
sudo yum -y install python-pip &&
sudo yum -y install vim wget dnf&&
sudo pip install alembic ansible &&
sudo pip install --upgrade pip &&
sudo mkdir /etc/ansible &&
sudo chown astmin:astmin /etc/ansible &&
sudo echo “[starfish]” >> /etc/ansible/hosts &&
sudo echo “localhost ansible_connection=local” >> /etc/ansible/hosts &&
mkdir -p ~/ansible/playbooks

But before it was not running until I made the following changes:
sudo yum -y update &&
sudo yum -y install epel-release &&
sudo yum -y install python3-pip &&
sudo yum -y install vim wget dnf&&
sudo pip3 install alembic ansible &&
sudo pip3 install --upgrade pip &&
sudo mkdir /etc/ansible &&
sudo chown astmin:astmin /etc/ansible &&
sudo echo “[starfish]” >> /etc/ansible/hosts &&
sudo echo “localhost ansible_connection=local” >> /etc/ansible/hosts &&
mkdir -p ~/ansible/playbooks

Like that, the author is also using a Playbook to automate some steps:
Like the Group command I mentioned above this Playbook also needs to be fixed/tuned:

starfish.txt (4.9 KB)

Hope you Help… Thank you for reading and an advanced thanks for your replies.

With Hope,
Prabhakaran

1 Like

I am sure this will help another, hope you submit to the errata and/or GitHub repo for the book code.

Related, when posting step-by-step commands, would you please consider the Preformatted text (Shift + Ctrl + C) option to surround your command text ? Alternatively, you can type 3 back-tick marks (```) on a new line and then begin on the next line with some code/command section, followed by another newline and three ticks.

So for example, this:

Becomes this:

I think some edits like this could help improve the readability of your important message for more users in the future in forums such as these. Also including versions of GNU/Linux that you were running on your own system while setting up Ansible would be useful for others to know eg. Debian 10, RedHat, etc.