Ansible playbook to check if http support for apt is installed

0 votes
I need a workaround to check if http support for apt is installed or not. How do I do that?
Nov 25, 2019 in Ansible by Hannah
• 18,030 points
99 views

1 answer to this question.

0 votes

Hi @Hannah, this ansible task should do your job:

 - name: Ensure https support for apt is installed
    apt: 
      state=present
      pkg=apt-transport-https
answered Nov 25, 2019 by Aria

Related Questions In Ansible

0 votes
1 answer

Ansible task to check if PGP key is installed on Ubuntu

Hi @hannah, have a look at this, ...READ MORE

answered Nov 25, 2019 in Ansible by Aria
67 views
0 votes
1 answer
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

answered Jan 17, 2019 in Ansible by Nicolas
4,318 views
+13 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,400 points
352 views
0 votes
1 answer
0 votes
1 answer

Ansible playbook for moving files from one node to another remote node

The best way to do this is: copy ...READ MORE

answered Jan 16, 2019 in Ansible by Nigya

edited Jan 18, 2019 by Vardhan 1,909 views
+1 vote
1 answer

Is it possible to append a large amount of text to a file using Ansible?

Here is concept which you can follow. blockinfile is ...READ MORE

answered Jul 30, 2018 in Ansible by Atul
• 10,250 points
3,894 views