diff options
author | sirkubax <muszynski@so1.net> | 2017-09-27 17:06:17 +0200 |
---|---|---|
committer | sirkubax <muszynski@so1.net> | 2017-09-27 17:06:17 +0200 |
commit | c62c527f82cd6addd38fec966efed5390bf15bdc (patch) | |
tree | a805e6b18117a50f588ac96ca6a5f0b6196b500c /ansible.html.markdown | |
parent | bb3e71c52957561c425999a542c0fb9f47a3c4f7 (diff) |
test markdown
Diffstat (limited to 'ansible.html.markdown')
-rw-r--r-- | ansible.html.markdown | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ansible.html.markdown b/ansible.html.markdown index b5de971c..2b997340 100644 --- a/ansible.html.markdown +++ b/ansible.html.markdown @@ -109,18 +109,19 @@ some_other_group ### Playbook -**Execution plan** written in a form of script file(s) is called `playbook`. +**Execution plan** written in a form of script file(s) is called **playbook**. Playbook consist of multiple elements * a list (or group) of hosts that 'the play' is executed against * `task(s)` or `role(s)` that are going to be executed * multiple optional settings (like default variables, and way more) -Playbook script language is YAML + +Playbook script language is YAML. You can think that playbook is very advanced CLI script that you are executing. #### Example of the playbook: -This playbook would execute (on all hosts defined in the inventory) two tasks +This example-playbook would execute (on all hosts defined in the inventory) two tasks: * `ping` that would return message *pong* * `shell` that execute three commands and return the output to our terminal @@ -134,11 +135,10 @@ tasks: shell: "date; whoami; df -h;" ``` -You can execute a playbook with a command: +You can run the playbook with the command: ```bash $ ansible-playbook path/name_of_the_playbook.yml ``` -It is also possible to become a user other than root using --become-user: ## More on ansible concept ### ansible-roles (a 'template-playbooks in right structure') @@ -232,6 +232,7 @@ virtualenv ### Web-UI: Ansible Tower, Jenkins, Rundeck +#become-user, become ### Tips and tricks AND,XOR |