Permalink
Browse files

Add ansible-galaxy command as an alternative for role creation

  • Loading branch information...
daviderestivo committed Mar 4, 2017
1 parent 3c79450 commit 5e2f2604def9cec381314765dec5079a5dce7bf2
Showing with 7 additions and 0 deletions.
  1. +7 −0 step-12/README.md
View
@@ -208,6 +208,13 @@ Now let's create the haproxy role:
mkdir -p step-12/roles/haproxy/{tasks,handlers,templates}
cp step-11/templates/haproxy.cfg.j2 step-12/roles/haproxy/templates/
```
Instead of creating the haproxy role directory structure using mkdir, it's
possible to use ansible-galaxy:
```bash
ansible-galaxy --offline init step-12/roles/haproxy
cp step-11/templates/haproxy.cfg.j2 step-12/roles/haproxy/templates/
```
then extract the handler, and remove reference to `templates/`.

0 comments on commit 5e2f260

Please sign in to comment.