Hi All,
I am reading a book to install and work on Asterisk 16.
I am a beginner to both Linux and Asterisk but started reading
the book properly and got stuck on a place in the book
In that book, the Author just mentioned the below task:
Create an Ansible playbook in the file ~/ansible/playbooks/starfish.yml
As I am new to Linux and Ansible, I need your help in this...
So, you're trying to learn all three of Ansible, Asterisk and Linux at the
same time!?
That doesn't sound good to me - depending on what operating system/s you're
previously familiar with, Linux can be enough of a challenge to get
comfortable with (and I'm assuming you're not an experienced Unix admin), and
I recommend you start with that before tackling anything else as potentially
even more complicated as Ansible and Asterisk (and certainly not both at the
same time).
It is better if someone teaches me the steps to create, edit and save the
"starfish.yml" file.
The simple answer to that is that you need a text editor.
Popular ones are vi, nano and emacs. My preference is vi, but I believe
beginners often seem to prefer nano.
The slightly longer answer to your question about how to "Create an Ansible
playbook in the file ~/ansible/playbooks/starfish.yml" and assuming you choose
vi as your editor is:
$ cd ~
$ mkdir -p ansible/playbooks
$ vi starfish.yml
Press insert, and you can enter whatever content the book tells you should be
in that file.
When done, press Escape, and then :wq to save the file and exit.
However, your question makes me feel that you're really getting rather ahead
of yourself by asking this on the ansible mailing list, and you should
consider joining a list helping newcomers to whichever Linux distribution
you're using (presumably CentOS, Ubuntu or something related to either of
those), and get to know about package management, basic configuration file
editing, and system log files etc., before trying to run ahead and get involved
with things as complex as Asterisk and Ansible.
I'm not trying to put you off - I'm just saying that you may find things a lot
easier to understand if you take things in stages rather than attempting to
learn several new things all at the same time.
Regards,
Antony.