Commit 1e9e359a authored by Martin van Es's avatar Martin van Es
Browse files

WIP

parent 7df25320
......@@ -5,7 +5,7 @@ Description=GeoDNS update
Type=oneshot
WorkingDirectory={{ mdxsaas_dir }}
ExecStart=git pull
ExecStart=ansible-playbook playbook.yml -i inventory/local --tags local,geodns --limit local
ExecStart=ansible-playbook playbook.yml -i inventory/local --tags local,geodns --limit {{ inventory_hostname }}
ExecStartPost=/bin/systemctl restart geodns
[Install]
......
......@@ -12,6 +12,11 @@
version: "{{ mdxsaas_version }}"
register: mdxsaas_git
- name: Create local inventory
ansible.builtin.template:
src: "local.j2"
dest: "{{ mdxsaas_dir }}/inventory/local"
- name: Write MDX-SAAS repo version
shell:
cmd: "git rev-parse HEAD > /tmp/mdx-saas-revision"
......
# Inventory Aliases
local ansible_connection=local
{{ inventory_hostname }} ansible_connection=local
# Hosts that receive the mdsigner role
[mdsigner]
# Hosts that receive the mdproxy role
[mdproxy]
local
{{ inventory_hostname }}
# Hosts that receive the GeoDNS role
[geodns]
local
{{ inventory_hostname }}
# All hosts for base role
[all:children]
mdsigner
mdproxy
geodns
......@@ -5,7 +5,7 @@ Description=mdproxy update
Type=oneshot
WorkingDirectory={{ mdxsaas_dir }}
ExecStart=git pull
ExecStart=ansible-playbook playbook.yml -i inventory/local --tags local,mdproxy --limit local
ExecStart=ansible-playbook playbook.yml -i inventory/local --tags local,mdproxy --limit {{ inventory_hostname }}
ExecStartPost=/bin/systemctl restart mdproxy
[Install]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment