Created
December 6, 2017 22:19
-
-
Save lynt-smitka/6d915fd1deff917ac2bf2c45ceb39c82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: webservers | |
remote_user: root | |
become_method: su | |
become_user: www | |
become: yes | |
gather_facts: no | |
any_errors_fatal: yes | |
max_fail_percentage: 30 | |
connection: local | |
serial: 5 | |
vars: | |
ssh_port: 2022 | |
vars_files: | |
- "vars.yml" | |
vars_prompt: | |
- name: "prompt_pass" | |
prompt: "Zdej heslo" | |
default: "tajne_heslo" | |
private: yes | |
encrypt: " sha256_crypt" | |
confirm: yes | |
salt: 1234 | |
salt_size: 8 | |
tags: | |
- tag1 | |
- tag2 | |
roles: | |
- app | |
- { role: app, port: 80, when: ansible_os_family=='Debian', tags :[tag1,…] } | |
- ... | |
tasks: | |
- include: tasks.yml | |
- include: tasks.yml var1=1 | |
- include: tasks.yml | |
vars: | |
var1: 1 | |
var2: | |
- a | |
- b | |
- { include: tasks.yml, var1: 1, var2: [a,b]} | |
- include: tasks.yml | |
when: ansible_os_family=='Debian' | |
- <task> | |
- ... | |
handlers: | |
- include: handlers.yml | |
- <task> | |
- ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment