Using ansible to install applications

0 votes

I'm having issues installing applications with dependencies using my YAML script see script below.

 - name: Install Slack
     apt:
       name: 'https://downloads.slack-edge.com/linux_releases/slack-desktop-4.11.1-amd64.deb'
       state: present
     become: yes
- name: Install Chrome
     apt:
       name: 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'
       state: present
     become: yes
- name: Download rpmfusion-free repository definition
     apt:
       name: 'https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-32.noarch.rpm'
       state: present
     become: yes
- name: Download rpmfusion-nonfree repository definition
     apt:
       name: 'https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-32.noarch.rpm'
       state: present
     become: yes
Nov 24, 2020 in Ansible by Manny
• 140 points

edited Nov 24, 2020 by MD 1,509 views

1 answer to this question.

0 votes

Hi@Manny,

Every application has some dependencies. Then only the applications can run. Now Ansible is used to configure the systems. So you have some application names in the playbook. Ansible is trying to install them but the applications have some dependencies. Now you can install the dependencies manually or using the Ansible playbook. If possible share your error as well.

answered Nov 24, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

How to install python package using Ansible playbook?

Hi@akhtar, Ansible has a pip module to install ...READ MORE

answered Dec 2, 2020 in Ansible by MD
• 95,460 points
4,306 views
+1 vote
3 answers
0 votes
1 answer

unable to build grails war on a vagrant machine using ansible

Try and run the command using shell ...READ MORE

answered Jul 2, 2018 in Ansible by ajs3033
• 7,300 points
812 views
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,950 views
+2 votes
1 answer
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 30, 2020 in Ansible by MD
• 95,460 points
2,540 views
0 votes
1 answer

How to install mongodb on centos 7 using ansible

Hi@Shashi, I think for MongoDB you need to ...READ MORE

answered Sep 16, 2020 in Ansible by MD
• 95,460 points
3,703 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP