O'Reilly logo

OpenStack Administration with Ansible 2 - Second Edition by Walter Bentley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reviewing playbooks and roles

Let's jump right into examining the master playbook that we created earlier to deploy Docker containers on CoreOS called ansible-coreos. The completed playbook and file, named base.yml, located in the root of the ansible-coreos directory, looks like this:

--- # This playbook deploys the ELK stack on CoreOS - name: Bootstrap CoreOS hosts: coreos gather_facts: False roles: - defunctzombie.coreos-bootstrap - name: Deploy ELK Stack hosts: coreos remote_user: core become: false tasks: - name: Start etcd service: name=etcd.service state=started become: true - name: Install docker-py shell: /home/core/bin/pip install docker-py==1.9.0 docker-compose==1.8.0 - name: Pull Elasticsearch container docker_image: name=elasticsearch ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required