Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 737 Bytes

README.md

File metadata and controls

47 lines (28 loc) · 737 Bytes

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