This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ansible:ansible_connection [2024/07/26 14:35] manu created |
ansible:ansible_connection [2024/07/26 15:17] (current) manu [Ansible communication methods] |
||
---|---|---|---|
Line 2: | Line 2: | ||
- | ansible-doc -t connection -l | + | ansible-doc -t connection -l |
+ | ansible-doc -t httpapi -l | ||
+ | ===== Conection types ===== | ||
+ | |||
+ | * Ssh with keys or password | ||
+ | * winRM | ||
+ | * restAPI | ||
+ | * localhost | ||
+ | * … | ||
+ | |||
+ | ===== Privilege elevation ===== | ||
+ | |||
+ | * Sudo | ||
+ | * Su | ||
+ | |||
+ | ===== Ansible variables ===== | ||
+ | |||
+ | <code> | ||
+ | become: true | ||
+ | become_method: su | ||
+ | become_user: nobody | ||
+ | become_flags: '-s /bin/sh' | ||
+ | </code> | ||