diff options
author | sirkubax <muszynski@so1.net> | 2017-10-20 22:31:58 +0200 |
---|---|---|
committer | sirkubax <muszynski@so1.net> | 2017-10-20 22:31:58 +0200 |
commit | 66055cf822018d1c2f38b352919c5ccdc4aeb437 (patch) | |
tree | 20bdcc3cb4903d3ab236d6742aaa97bf89df0c46 | |
parent | 1f035686ef8f6605d8e43c1c6138bae10c4f9b0d (diff) |
set -e - again
-rw-r--r-- | ansible.html.markdown | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ansible.html.markdown b/ansible.html.markdown index e17e543f..c495b308 100644 --- a/ansible.html.markdown +++ b/ansible.html.markdown @@ -109,6 +109,7 @@ hosts: all tasks: - name: "ping all" ping: + - name: "execute a shell command" shell: "date; whoami; df -h;" ``` @@ -174,8 +175,12 @@ We would clone the ready-to-use examples from additional repository ```bash $ git colone git@github.com:sirkubax/ansible-for-learnXinYminutes.git $ cd ansible-for-learnXinYminutes -$ source environment -$(venv) ansible-playbook playbooks/role_example.yml +$ 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-learnXinYminute$ ansible-playbook playbook/simple_playbook.yml + ``` #### Role directory structure: |