Skip to content

Instantly share code, notes, and snippets.

View piniv's full-sized avatar

Pini Vaknin piniv

View GitHub Profile
---
- block:
- block:
- import_tasks: dependencies.yml
- import_tasks: init.yml # facts
- import_tasks: deploy.yml
- import_tasks: finalize.yml
rescue:
- include_tasks: deploy-retry.yml
- name: Crap! Failed to retry - dump instance
@piniv
piniv / aws-logs.yml
Last active May 15, 2019 14:37
install and configure awslogs
- block: #install and config awslogs
- name: AWSLOGS | check if configuration file is present
stat: "path={{ awslogs_config_file }}"
register: awslogs_status
- block: #only download when awslogs does not exist
- name: AWSLOGS | download installer
get_url:
url: "{{ awslogs_agent_url }}"
dest: /tmp/awslogs-agent-setup.py
@piniv
piniv / deploy-pull.yml
Created March 17, 2019 10:56
Play for nodes that works in PULL mode
---
#Play for nodes that works in PULL mode
- hosts: localhost
become: true
vars:
common_deploy_method: pull
tasks:
- import_role:
name: common