Skip to main content

Command Palette

Search for a command to run...

3. WordPress Setup Using Ansible Playbook

Updated
•2 min read•View as Markdown
3. WordPress Setup Using Ansible Playbook
S

👋 Hello! I'm passionate about DevOps & AWS Cloud. I have over 1.4 years of experience in IT Security and Cloud field. I'm proficient in a variety of cutting-edge technologies and always motivated to expand my knowledge and skills. Let's connect and grow together!

OS: Linux/Unix, Mac, Windows Cloud: AWS Containers: Docker Version Control: GIT, GitHub, GitLab, Bitbucket. CI/CD Tools: Jenkins Container Orchestration: Kubernetes Languages: Python, PowerShell, Shell scripting IAC: Terraform, Ansible, Chef, AWS Cloud Formation Web: Apache, Nginx, Tomcat

Open to opportunities. 🌱 #DevOps #AWS #CI/CD #Containers #Python #IaC #Cloud #Blogging #OpenToOpportunities

Working Step

Create 2 Instance Master and Node

Access

Follow these Steps on Master and Node

💡
Create user

💡
Add user in sudoers file

💡
Edit sshd_config file
sudo nano /etc/ssh/sshd_config

save file -> ctrl+x , Enter

💡
Create Private and Public key
ssh-keygen

Press Enter continuous

💡
Note:- Follow same step in Node

After Following Above Step in Node

Copy public key on Node

cd
cd .ssh
cat id_rsa.pub #copy public key and paste on node

💡
Paste on Node
cd 
cat .ssh/authorized_key

Access the Node Server

ssh your_node_ip

touch nodecheck

Check on Node Sever

💡
File is created

Clone the Code

git clone https://github.com/Fir3eye/ansible-playbooks.git
cd ansible-playbooks/
cd wordpress-lamp_ubuntu1804/

cat hosts #copy your node ip

💡
Edit cd /var/default.yml file
nano /var/default.yml

sudo apt install ansible -y

ansible-playbook playbook.yml -i hosts

💡
WordPress Installed

Copy your Node IP and paste on browser

💡
Keep Learning :-)
H

Hey nice blog Can you explain why we installed and used Wordpress ?

1
S

creating online stores, portfolios, and membership sites. Users can build almost any type of website

1

More from this blog

Sudheer sen's blog

17 posts

👋 Hello! I'm passionate about DevOps & AWS Cloud. I have over 2 years of experience in IT Security and Cloud field. I'm proficient in a variety of cutting-edge technologies.