-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tldr (EticaAI/aguia-pescadora#27) checa e alerta caso pessoa não tenh…
…a os requisitos para instalação do Tsuru em sua máquina local
- Loading branch information
Showing
4 changed files
with
115 additions
and
49 deletions.
There are no files selected for viewing
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
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
1 change: 0 additions & 1 deletion
1
roles/1-node-tsuru-docker/tasks/openresty-luarocks-lua-resty-auto-ssl-install.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
# openresty-luarocks-lua-resty-auto-ssl-install.yml | ||
|
||
|
||
- name: software-properties-common é requerido pelo PPA de OpenResty | ||
apt: | ||
name: software-properties-common |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,49 @@ | ||
---- | ||
--- | ||
|
||
# Playbook construído para ser a tentativa mais fácil possível para alguém que | ||
# já sabe o que fazer mas não quer ler toda documentação | ||
|
||
# TODO: escrever um tldr.yml (fititnt, 2019-07-01 30:57 BRT) | ||
# @see https://github.com/EticaAI/aguia-pescadora/issues/27 | ||
# @see https://github.com/EticaAI/aguia-pescadora/issues/27 | ||
|
||
# ansible-lint tldr.yml | ||
# ansible-playbook tldr.yml -e tsuru_host=aguia-pescadora-delta.etica.ai | ||
|
||
|
||
# @see https://stackoverflow.com/questions/33222641/override-hosts-variable-of-ansible-playbook-from-the-command-line | ||
|
||
- name: tldr tsuru client? docker? docker-machine? | ||
hosts: localhost | ||
tasks: | ||
- name: tsuru client? https://tsuru-client.readthedocs.io/en/latest/installing.html | ||
shell: tsuru --version | ||
register: result | ||
ignore_errors: false | ||
|
||
- name: docker? https://docs.docker.com/install/ | ||
shell: docker --version | ||
register: result2 | ||
ignore_errors: false | ||
|
||
- name: docker-machine? https://docs.docker.com/machine/install-machine/ | ||
shell: docker-machine version | ||
register: result3 | ||
ignore_errors: false | ||
|
||
- name: tldr | ||
hosts: localhost | ||
connection: local | ||
tasks: | ||
- name: modo para forçar servidor de destino como target | ||
add_host: | ||
name: "{{ tsuru_host }}" | ||
groups: tsuru_host | ||
changed_when: false | ||
|
||
- name: tldr, target | ||
hosts: tsuru_host | ||
gather_facts: false | ||
tasks: | ||
- name: teste se fucionou | ||
debug: | ||
msg: "I'm on {{ ansible_host }}" |