Example
# user & passowd & sudo without password
[web]
1.2.3.4 mynameinv=Rajesh in inventory
1.2.3.5
1.2.3.6
1.2.3.7
[web:vars]
ansible_user=user1
ansible_ssh_pass=pass1
ansible_become=yes
# user & key & sudo with password
[app]
2.2.3.4 mynameinv=Rajesh in inventory
3.2.3.5
4.2.3.6
5.2.3.7
[app:vars]
ansible_user=user1
ansible_ssh_private_key_file=node.pem
ansible_become=yes
ansible_become_pass=pass123
# user & key & sudo with Diff user and password
[log]
6.2.3.4 ansible_user=user1 ansible_ssh_private_key_file=node.pem ansible_become=yes ansible_become_user=user2 ansible_become_pass=pas122
7.2.3.5
8.2.3.6
9.2.3.7
# user & pass & sudo with Diff user and password
[db]
6.2.3.1 ansible_user=user1 ansible_ssh_pass=pass1 ansible_become=yes ansible_become_user=user2 ansible_become_pass=pass2
7.2.3.2
8.2.3.3
9.2.3.4
Ansible Fundamental tutorial by Manish in 2020
Ansible Advance Tutorial for Beginners with Demo 2020 — By DevOpsSchool
Ansible with network module (Part 01) — By DevOpsSchool
Ansible with network module (Part 02) — By DevOpsSchool
Ansible with network module (Part 03) — By DevOpsSchool
Ansible with network module (Part 04) — By DevOpsSchool
Ansible with network module (Part 05) — By DevOpsSchool
Ansible with network module (Part 06) — By DevOpsSchool
Ansible with network module (Part 07) — By DevOpsSchool
Ansible with network module (Part 08) — By DevOpsSchool
Ansible with network module (Part 09) — By DevOpsSchool
Ansible with network module (Part 10) — By DevOpsSchool
Ansible with network module (Part 11) — By DevOpsSchool
Ansible with network module (Part 12) — By DevOpsSchool
Ansible with network module (Part 13) — By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Gradle versions, their supported Java versions, and unsupported Java versions - December 23, 2024
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024