Files
Wiki/Ansible/README.md
2020-04-16 11:00:52 +02:00

300 B

Ansible

Adhoc commands

Generic

ansible <hosts/groups pattern> -l <limit pattern> -m <module> -a "<module args>" -u <login user> --become --ask-become-pass

Example

ansible all -l localhost -m systemd -a "name=nginx state=restarted" -u test --become --ask-become-pass