From 561a776dca05f3695b76da03072f27f2308e8f51 Mon Sep 17 00:00:00 2001 From: jowj Date: Mon, 21 May 2018 22:26:12 -0500 Subject: [PATCH] Add rudamentary files for ansible playbooks. --- deployments/hosts.yml | 11 +++++++++++ deployments/mojo.yml | 11 +++++++++++ deployments/secrets.yml | 9 +++++++++ 3 files changed, 31 insertions(+) create mode 100644 deployments/hosts.yml create mode 100644 deployments/mojo.yml create mode 100644 deployments/secrets.yml diff --git a/deployments/hosts.yml b/deployments/hosts.yml new file mode 100644 index 0000000..f9aa4b1 --- /dev/null +++ b/deployments/hosts.yml @@ -0,0 +1,11 @@ +all: + children: + dockerhosts: + hosts: + 192.168.1.156: + macs: + hosts: + hydra-ling: + windows: + hosts: + lurker-ling: \ No newline at end of file diff --git a/deployments/mojo.yml b/deployments/mojo.yml new file mode 100644 index 0000000..5a3b3a0 --- /dev/null +++ b/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 }} \ No newline at end of file diff --git a/deployments/secrets.yml b/deployments/secrets.yml new file mode 100644 index 0000000..9ca4514 --- /dev/null +++ b/deployments/secrets.yml @@ -0,0 +1,9 @@ +$ANSIBLE_VAULT;1.1;AES256 +31306630346633643037316266353933333363633466366438303362386433366639303865373636 +6236643364363636656131363832626532336638303431320a343130643061356134396461353864 +32356438653939346232316236633132393165313361326336653263393366353361613230303936 +3334643966633862350a656465663337356135653762323332316639616337396362613366343530 +31303666656666386534383865363233353934646362336135643037363363306564613538653733 +62373338343331313939666533623333386664316461616434623333633939623962323232623232 +37333035623363333062656536313364613831373839373761633266333061326264396638343430 +61623462316533363637