Skip to content

Instantly share code, notes, and snippets.

@mieciu
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mieciu/361e8e2ba7408a2ecdb9 to your computer and use it in GitHub Desktop.
Save mieciu/361e8e2ba7408a2ecdb9 to your computer and use it in GitHub Desktop.
---
- hosts: all
connection: local
vars:
install_flask: False
name: example1
tasks:
- name: Check ssh config
file: path=/home/jan/test_file owner=”jan" mode="0600"
- name: Install flask
pip: name=flask virtualenv=/my_app/venv
when: install_flask
- debug: msg="arch:{{ ansible_architecture }},distro:{{ ansible_distribution }}"
- name: Message
debug: msg="Ubuntu na pokładzie!!"
when: ansible_distribution == "Ubuntu"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment