Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ansible
flask-helloworld
.gitignore
Dockerfile
LICENSE
README.rst

README.rst

Playbook to Run Containerized Flask Application on Atomic host

Configuration

Replace IP_ADDRESS_OF_REMOTE_HOST in Inventory file with the IP Address of your Remote Host. Replace <PRIVATE_KEY_FILE> in ansible_ssh_private_key_file field in Inventory with your Private key file. Replace <USER> in remote_user field in ansible.cfg with the user of your remote host.

Replace [Source Directory] in src_dir field in main.yml with your /path/to/src_dir.

Replace [Destination Directory] in dest_dir field in main.yml with your /path/to/dest_dir.

Run the Playbook

Now simply run ansible-playbook main.yml. Make sure you are in ansible directory.

To verify the output execute the following command on your Atomic host:

curl http://localhost:5000.

Read more in this Blog Post: http://www.projectatomic.io/blog/2016/10/deployment-using-ansible.