Ansible simple project day 0 Ansible in 5 mins

preview_player
Показать описание
Ansible simple project day 0 Ansible in 5 mins

What is Ansible?

Called a configuration management tool The remote machine and server can be set automatically according to the program.

Prerequisite
1. AWS account
2. Git bash installed for windows(Linux not required)

sudo su
sudo yum update -y
sudo amazon-linux-extras install epel -y
sudo yum install ansible -y


mkdir helloworld
cd helloworld
touch inventory

vim inventory
[target]
localhost
[target:vars]
ansible_ssh_common_args="-o StrictHostKeyChecking=no"

---
- hosts: all
tasks:
- name: Hello World!
debug:
msg: "Hello World!"


Рекомендации по теме