Skip to content

Commit 9099222

Browse files
committed
Fixes geerlingguy#18: Update DigitalOcean example to use v2 and Ansible 2.x structure.
1 parent 963f8ff commit 9099222

File tree

5 files changed

+189
-202
lines changed

5 files changed

+189
-202
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ansible for DevOps Examples
22

3-
This repository contains Ansible examples developed to support different sections of [Ansible for DevOps](http://ansiblefordevops.com/), a book on [Ansible](http://www.ansible.com/) by [Jeff Geerling](http://www.jeffgeerling.com/).
3+
This repository contains Ansible examples developed to support different sections of [Ansible for DevOps](https://www.ansiblefordevops.com/), a book on [Ansible](http://www.ansible.com/) by [Jeff Geerling](http://www.jeffgeerling.com/).
44

55
Most of the examples are full-fledged VM examples, which use Vagrant, VirtualBox, and Ansible to boot and configure VMs on your local workstation. Not all playbooks follow all of Ansible's best practices, as they illustrate particular Ansible features in an instructive manner.
66

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Simple Docker Example - Ansible
22

3-
This is an extremely simple Docker example to help introduce you to managing Docker containers via Ansible. The example is explained in more detail in Chapter 8 of [Ansible for DevOps](http://ansiblefordevops.com/).
3+
This is an extremely simple Docker example to help introduce you to managing Docker containers via Ansible. The example is explained in more detail in Chapter 8 of [Ansible for DevOps](https://www.ansiblefordevops.com/).
44

55
To run the example, make sure you have Docker installed on the workstation or VM where this playbook is located, then enter the command:
66

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Digital Ocean Example for Ansible
22

3-
Chapter 7 of [Ansible for DevOps](http://ansiblefordevops.com/) contains details and examples for using Ansible to provision and dynamically work with Digital Ocean droplets.
3+
Chapter 7 of [Ansible for DevOps](https://www.ansiblefordevops.com/) contains details and examples for using Ansible to provision and dynamically work with Digital Ocean droplets.
44

55
## Dynamic Inventory and Provisioning
66

@@ -9,11 +9,10 @@ Examples using Ansible's Digital Ocean integration are contained within this dir
99
- `provision.yml` contains an example of provisioning a new Digital Ocean droplet, then immediately configuring it with Ansible.
1010
- `digital_ocean.py` is the Digital Ocean dynamic inventory script included with Ansible. Don't use this copy; get a fresh, up-to-date copy from the Ansible project instead.
1111

12-
Before you can use either of these examples, you will need to set a couple environment variables:
12+
Before you can use either of these examples, you will need to set an environment variable with your DigitalOcean API Personal Access Token:
1313

14-
- `DO_CLIENT_ID` (your Digital Ocean v1 API client ID).
15-
- `DO_API_KEY` (your Digital Ocean v1 API key).
14+
export DO_API_TOKEN=YOUR_API_TOKEN_HERE
1615

1716
## Author Information
1817

19-
These examples were created in 2015 by [Jeff Geerling](http://www.jeffgeerling.com/), author of [Ansible for DevOps](http://ansiblefordevops.com/).
18+
These examples were created in 2015 by [Jeff Geerling](http://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).

0 commit comments

Comments
 (0)