Add rudamentary files for ansible playbooks.
This commit is contained in:
parent
5d6331148a
commit
561a776dca
11
deployments/hosts.yml
Normal file
11
deployments/hosts.yml
Normal file
@ -0,0 +1,11 @@
|
||||
all:
|
||||
children:
|
||||
dockerhosts:
|
||||
hosts:
|
||||
192.168.1.156:
|
||||
macs:
|
||||
hosts:
|
||||
hydra-ling:
|
||||
windows:
|
||||
hosts:
|
||||
lurker-ling:
|
11
deployments/mojo.yml
Normal file
11
deployments/mojo.yml
Normal file
@ -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
deployments/secrets.yml
Normal file
9
deployments/secrets.yml
Normal file
@ -0,0 +1,9 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
31306630346633643037316266353933333363633466366438303362386433366639303865373636
|
||||
6236643364363636656131363832626532336638303431320a343130643061356134396461353864
|
||||
32356438653939346232316236633132393165313361326336653263393366353361613230303936
|
||||
3334643966633862350a656465663337356135653762323332316639616337396362613366343530
|
||||
31303666656666386534383865363233353934646362336135643037363363306564613538653733
|
||||
62373338343331313939666533623333386664316461616434623333633939623962323232623232
|
||||
37333035623363333062656536313364613831373839373761633266333061326264396638343430
|
||||
61623462316533363637
|
Loading…
Reference in New Issue
Block a user