Installs and starts docker, builds a python docker image that takes two strings and prints true or false depending on if they are anagrams.
vagrant centos7 VM
- VM can access github
- VM can support docker
Name | Variable Type |
---|---|
str_one | String |
str_two | String |
---
- hosts: localhost
roles:
- ans-model
- ssh into centos7 VM and become root
- run
yum -y update && yum -y install git epel-release ansible
- run
cd /opt/
- run
git clone https://github.com/AI-Joe/ans-mmodal.git
- run
cd /opt/ans-mmodal/files
- run
sh setup.sh
- run
cd /opt/
- run
ansible-playbook -i inventory mmodal_playbook.yml -e "str_one={string_value_one}" -e "str_two={string_value_two}"
The variables are already added to the playbooks. Change test_anagram to another name to test other cases.
- run
cd /opt/ans-mmodal/tests
- run
ansible-playbook -i inventory test_anagram.yml
Joe Lieberman [email protected]