๐
This file contains hidden or 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
"dependencies": { | |
"coffee-script": "^1.12.7", | |
"hubot": "^2.19.0", | |
"hubot-help": "^0.2.2", | |
"hubot-hipchat": "^2.12.0-6", | |
"hubot-scripts": "^2.17.2" | |
} |
This file contains hidden or 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
$ yarn global add generator-hubot | |
$ cd bot | |
$ yo hubot |
This file contains hidden or 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
- name: install app | |
hosts: dev | |
gather_facts: no | |
vars: | |
ip: "{{ hostvars.localhost.ec2.tagged_instances[0].private_ip }}" | |
vars_files: | |
- secret.yml | |
roles: | |
- aws | |
- app |
This file contains hidden or 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
netsh advfirewall firewall add rule name="App Port 8080" dir=in action=allow protocol=TCP localport=8080 |
This file contains hidden or 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
- name: install app | |
hosts: dev | |
gather_facts: no | |
vars_files: | |
- secret.yml | |
roles: | |
- aws | |
- app |
This file contains hidden or 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
- name: install app | |
win_package: | |
path: "{{ exe_find.files[0].path }}" | |
arguments: "-q -overwrite -varfile {{ app.install_varfile_path }}" | |
product_id: {{ app.product_id }} | |
state: present | |
creates_path: Z:\app |
This file contains hidden or 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
- name: find exe path | |
win_find: | |
paths: "{{ extracted_path }}" | |
patterns: "*.exe" | |
register: exe_find |
This file contains hidden or 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
- name: install pscx | |
win_chocolatey: | |
name: pscx | |
state: present |
This file contains hidden or 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
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
This file contains hidden or 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
- name: download artifact | |
win_command: "PowerShell.exe -Command Read-S3Object -Region {{aws.region}} -BucketName <bucket_name> -Key <key> -File {{ target_path }} " |