Skip to content

will8ug/ansible_quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_quickstart

Practices of this guide: Getting started with Ansible.

Preparation:

# Prepare an container on local before testing Ansible
cd test-container
nerdctl build -t ssh_server .
nerdctl run -d -p 2222:22 --name ssh_container ssh_server
ssh sshuser@localhost -p 2222
ssh-copy-id -i ~/.ssh/id_rsa.pub -p 2222 sshuser@localhost

Relevant commands of this repository:

ansible-inventory -i inventory.ini --list
ansible myhosts -m ping -i inventory.ini -u sshuser

ansible myhosts -m ping -i inventory.yml

ansible-playbook -i inventory.yml playbook.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published