Skip to content
/ ansible Public

Automate all of your Cloud Machine using Ansible. We build example Ansible Playbook, Ansible Galaxy, and Ansible Inventory to manage automatic once for all Cloud VM.

Notifications You must be signed in to change notification settings

xhilmi/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Install Ansible
bash <(curl -s https://raw.githubusercontent.com/xhilmi/ansible/master/install.sh)
  1. Setup file ansible.cfg and hosts
  • save into $HOME for user
  • save into /etc/ansible/ for root
ansible-config init --disabled -t all > ansible.cfg
[master_node]
38.1.1.1

[worker_node_a]
38.2.2.2

[worker_node_b]
38.3.3.3

[kubernetes:children]
master_node
worker_node

[worker_node:children]
worker_node_a
worker_node_b
  1. On your local machine run ssh-copy-id
ssh-copy-id user@38.1.1.1
ssh-copy-id user@38.2.2.2
ssh-copy-id user@38.3.3.3
  1. Test ansible connection image
ansible -i hosts all -m ping
ansible -i hosts master-node -m ping
ansible -i hosts worker-node -m ping
ansible -i hosts kubernetes -m ping

About

Automate all of your Cloud Machine using Ansible. We build example Ansible Playbook, Ansible Galaxy, and Ansible Inventory to manage automatic once for all Cloud VM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages