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
--- | |
- 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 |
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
- 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 |
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
--- | |
#Play for nodes that works in PULL mode | |
- hosts: localhost | |
become: true | |
vars: | |
common_deploy_method: pull | |
tasks: | |
- import_role: | |
name: common |