Create a sample Playbook that uses some of the important concepts like — Jinja template, variable, magic variable, Notify-handlers.
Ansible have inbuilt special variable that are handy for Automating the tasks. More about these variables are available in Ansible document page.
When trying to connect the AWS instance and download the file, i get an error message as below.
[root@localhost ansbile_playbook]# ansible-playbook install_docker.yamlPLAY [awsnode] ********************************************************************TASK [Gathering Facts] ********************************************************************
ok: [34.229.157.247]TASK [Download the docker repo.] ********************************************************************
fatal: [34.229.157.247]: FAILED! => {"changed": false, "checksum_dest": null, "checksum_src": "d7ff809b1df9aaba3a0e3e0c68ed188e3d3ff9d9", "dest": "/etc/yum.repos.d/docker-ce.repo", "elapsed": 0…