0 votes
1 view
in Devops and Agile by (14.6k points)

I'm trying to wget a file from a web server and I want to do the same using shell in my Ansible playbook. How do I do it?

1 Answer

0 votes
by (33.2k points)

Simply use this playbook:


- hosts: all

  sudo: true


  - name: Install folder

    sudo: true

    action: shell sudo mkdir -p /tmp/install/mysql/ && cd /tmp/install/mysql/

  - name: Download MySql

    sudo: true

    action: shell sudo wget http://{{ repo_host }}/MySQL-5.6.15-1.el6.x86_64.rpm-bundle.tar

Hope this answer helps you!

Welcome to Intellipaat Community. Get your technical queries answered by top developers !