Write an Ansible playbook that:
1.) Runs on localhost which is a CentOS 7 VM.
2.) Takes two arguments: str1, str2.
3.) Installs and starts Docker.
4.) Builds a Docker image that contains a python application that:
a.) Takes two strings as input arguments and prints to stdout("True"
or "False") as to whether they are anagrams.
5.) Runs an instance of Docker image providing str1 and str2 as
arguments. The container should exit after printing "True" or "False".
The command 'docker logs' will be used to determine the output of each
execution of 'docker run'.
a.) As a bonus, add this logic to the playbook.
6.) If the playbook is executed multiple times, it should skip the
install of Docker and build of the Docker images if already complete.
Return a zip file containing all necessary files to execute the above.
Also include directions on how to setup/run the Ansible playbook.
14 freelancers are bidding on average $279 for this job
Hi, I have desired knowledge on Ansible and docker both, I will create required playbook for you. Do you want all this to be done on local machine (where playbook is run) or on a remote machine