summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsirkubax <muszynski@so1.net>2017-10-20 23:24:45 +0200
committersirkubax <muszynski@so1.net>2017-10-20 23:24:45 +0200
commitd81ed7f3b7bfdc748b74f75debd5451cb5bbee59 (patch)
tree6da14508309aa2cbd23b048d3512b1d6d2c962a8
parent66055cf822018d1c2f38b352919c5ccdc4aeb437 (diff)
set -e - again
-rw-r--r--ansible.html.markdown17
1 files changed, 11 insertions, 6 deletions
diff --git a/ansible.html.markdown b/ansible.html.markdown
index c495b308..d134c073 100644
--- a/ansible.html.markdown
+++ b/ansible.html.markdown
@@ -169,18 +169,23 @@ pre_tasks:
shell: echo 'this task is the last, but would be executed before roles, and before tasks'
```
-Example->role
-
-We would clone the ready-to-use examples from additional repository
+#### We would use repository with *ready to use* examples
+We would clone the repository
```bash
$ git colone git@github.com:sirkubax/ansible-for-learnXinYminutes.git
$ cd ansible-for-learnXinYminutes
$ source environment.sh
-(venv) u@host:~/ansible-for-learnXinYminutes$ ansible-playbook playbooks/role_example.yml
+$
+$# First lets execute the simple_playbook.yml
+(venv) user@host:~/ansible-for-learnXinYminutes$ ansible-playbook playbook/simple_playbook.yml
-# First lets execute the simple_playbook.yml
-(venv) user@host:~/ansible-for-learnXinYminute$ ansible-playbook playbook/simple_playbook.yml
+```
+```bash
+$ source environment.sh
+$
+$# Now we would run the above playbook with roles
+(venv) user@host:~/ansible-for-learnXinYminutes$ ansible-playbook playbooks/role_example.yml
```
#### Role directory structure: