I am having issues installing basic packages using ansible

0 votes

I have my Yaml script, established ssh with remote PC, but unable to install applications that require prerequisites or dependencies

see 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

recategorized Nov 24, 2020 by MD 687 views

1 answer to this question.

0 votes
Hi@akhtar,

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

How can I create a new user using ansible ploybook?

You're switching from the root user. Root ...READ MORE

answered Mar 29, 2018 in Ansible by DareDev
• 6,890 points
859 views
0 votes
2 answers

How do i install Ansible using virtualenv

Adding to @Mohit's answer,  For CentOS and RHEL: sudo ...READ MORE

answered Jan 10, 2019 in Ansible by Dikinson
5,472 views
0 votes
1 answer
0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
4,103 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,954 views
+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,460 points
2,350 views
0 votes
1 answer

Unable to install packages through Ansible

Hi, Try to ping your all nodes. There ...READ MORE

answered Jul 15, 2020 in Ansible by MD
• 95,460 points
1,438 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