Skip to content

S0larin13/ansible-quick-note

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible ad-hoc

Installing packages yum

Let us install alt-php80*

ansible app -a "yum install -y alt-php80*"

List hosts

ansible -i hosts all --list-hosts

ansible -i hosts all -m setup

Ping all hosts (module ping)

ansible all -i hosts -m ping

Run uptime on shell

ansible all -i hosts -m shell -a "uptime" 

Create a file

ansible all -m file -a "name=testfile state=touch"

Ansible playbook

Ansible playbook update centos and Plesk

a link

Ansible playbook snaphot vphere

a link