Skip to content

I"m following a course from Udemy about Ansible for Absolute Beginners

Notifications You must be signed in to change notification settings

ShanMorton/Ansible-for-the-Absolute-Beginner-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

I'm following a short little course on Udemy named Ansible for the Absolute Beginner - DevOps

I'll set up a Linux ec2 instance on my aws account (I guess I could terraform it... 😄)

and look up how to install ansible and see how I do.

Wish me luck!

I started up an ec2 instance (Amazon Linux 2023 AMI 2023.4.20240319.1 x86_64 HVM kernel-6.1) and found this article: https://medium.com/@dassandeep0001/install-ansible-on-ec2-instance-bbfa7e4481ec

This may help too:

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html

sudo yum update -y

sudo yum install -y epel-release
sudo yum install -y ansible

ansible — version

sudo nano /etc/ansible/hosts

[your-group]
your-ec2-instance-ip-address

I'll have to keep in mind that this IP address will change each time.

Run a very simple Ansible command

ansible localhost -m shell -a 'date'
ansible localhost -m shell -a 'pwd'

These give me info back: Date and my working directory.

ansible simple cmds

Add your servers to you inventory

You'll edit the /etc/ansible/hosts file w/ information of the server you want to manage

About

I"m following a course from Udemy about Ansible for Absolute Beginners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published