Skip to content

Commit

Permalink
Add rudamentary files for ansible playbooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jowj committed May 22, 2018
1 parent 5d63311 commit 561a776
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deployments/hosts.yml
@@ -0,0 +1,11 @@
all:
children:
dockerhosts:
hosts:
192.168.1.156:
macs:
hosts:
hydra-ling:
windows:
hosts:
lurker-ling:
11 changes: 11 additions & 0 deletions deployments/mojo.yml
@@ -0,0 +1,11 @@
- hosts: dockerhosts
vars:
SLACK_BOT_TOKEN: 200
remote_user: josiah
tasks:
- name: Pull latest version from github
command: cd ~/mojojojo-bot && git pull
- name: Build from the latest version
command: cd ~/mojojojo-bot && docker build -t mojo -f docker/dockerfile .
- name: Run the newly built docker container
command: docker container run --restart-always mojo -e SLACK_BOT_TOKEN={{ SLACK_BOT_TOKEN }}
9 changes: 9 additions & 0 deletions deployments/secrets.yml
@@ -0,0 +1,9 @@
$ANSIBLE_VAULT;1.1;AES256
31306630346633643037316266353933333363633466366438303362386433366639303865373636
6236643364363636656131363832626532336638303431320a343130643061356134396461353864
32356438653939346232316236633132393165313361326336653263393366353361613230303936
3334643966633862350a656465663337356135653762323332316639616337396362613366343530
31303666656666386534383865363233353934646362336135643037363363306564613538653733
62373338343331313939666533623333386664316461616434623333633939623962323232623232
37333035623363333062656536313364613831373839373761633266333061326264396638343430
61623462316533363637

0 comments on commit 561a776

Please sign in to comment.