How to install python package using Ansible playbook

0 votes

Hi Team,

I am new to ansible-playbook. I want to install the python package using the Ansible playbook. Can anyone share the playbook to perform the task?

Dec 2, 2020 in Ansible by akhtar
• 38,180 points

1 answer to this question.

0 votes


Ansible has a pip module to install the python package on systems. The below-given code you can use in your playbook.

# Install python package.
- pip:
    name: bottle
answered Dec 2, 2020 by MD
• 95,220 points

Related Questions In Ansible

0 votes
1 answer

devops , how to create user using ansible playbook

root doesn't need a password to switch ...READ MORE

answered Jul 16, 2018 in Ansible by Kalgi
• 2,680 points
0 votes
1 answer
0 votes
1 answer

How to configure httpd web server using Ansible Playbook?

Hi@akhtar, You need to write one program file ...READ MORE

answered Jul 30, 2020 in Ansible by MD
• 95,220 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

answered Jun 29, 2020 in Ansible by MD
• 95,220 points
0 votes
1 answer

How to install httpd web server in remote node using Ansible?

Hi@akhtar, You need to use the package module in Ansible. ...READ MORE

answered Jul 29, 2020 in Ansible by MD
• 95,220 points