Difference between revisions of "Examples of Ansible execution modules"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* <code>[[ansible -m raw]] --ask-pass --ask-become-pass DESTINATION_HOSTNAME -a uptime</code> | * <code>[[ansible -m raw]] --ask-pass --ask-become-pass DESTINATION_HOSTNAME -a uptime</code> | ||
− | * <code>[[ansible -m raw]] -k -K DESTINATION_HOSTNAME -a uptime</code> | + | * <code>[[ansible -m raw]] -u MY_USERNAME -k -K DESTINATION_HOSTNAME -a uptime</code> |
== See also == | == See also == |
Revision as of 11:34, 29 November 2020
ansible -m raw DESTINATION_HOSTNAME -a uptime
ansible -m shell DESTINATION_HOSTNAME -a uptime
ansible -m command DESTINATION_HOSTNAME -a uptime
(Do not support some characters as: "|")
ansible -m raw --ask-pass --ask-become-pass DESTINATION_HOSTNAME -a uptime
ansible -m raw -u MY_USERNAME -k -K DESTINATION_HOSTNAME -a uptime
See also
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: