first steps for ansible deployment
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -144,3 +144,6 @@ cython_debug/
|
||||
# Project specific
|
||||
message.txt
|
||||
config.py
|
||||
inventory.txt
|
||||
ansible/host_vars/*
|
||||
!.keep
|
||||
|
||||
2
ansible/group_vars/all.yml
Normal file
2
ansible/group_vars/all.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
message_file: message.txt
|
||||
0
ansible/host_vars/.keep
Normal file
0
ansible/host_vars/.keep
Normal file
12
ansible/playbook.yml
Normal file
12
ansible/playbook.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- hosts: autoreply_editor
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Get newest version of autoreply-editor
|
||||
git:
|
||||
repo: https://src.mehl.mx/mxmehl/autoreply-editor.git
|
||||
dest: autoreply-editor
|
||||
|
||||
- name: Deploy config file
|
||||
template:
|
||||
src: config.py.j2
|
||||
dest: autoreply-editor/config.py
|
||||
3
ansible/templates/config.py.j2
Normal file
3
ansible/templates/config.py.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
MESSAGE_FILE = "{{ message_file }}"
|
||||
BASIC_AUTH_USERNAME = "{{ auth_user }}
|
||||
BASIC_AUTH_PASSWORD = "{{ auth_pass }}"
|
||||
Reference in New Issue
Block a user