Skip to content
Snippets Groups Projects
Commit 1e9e359a authored by Martin van Es's avatar Martin van Es
Browse files

WIP

parent 7df25320
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ Description=GeoDNS update ...@@ -5,7 +5,7 @@ Description=GeoDNS update
Type=oneshot Type=oneshot
WorkingDirectory={{ mdxsaas_dir }} WorkingDirectory={{ mdxsaas_dir }}
ExecStart=git pull 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 ExecStartPost=/bin/systemctl restart geodns
[Install] [Install]
... ...
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
version: "{{ mdxsaas_version }}" version: "{{ mdxsaas_version }}"
register: mdxsaas_git register: mdxsaas_git
- name: Create local inventory
ansible.builtin.template:
src: "local.j2"
dest: "{{ mdxsaas_dir }}/inventory/local"
- name: Write MDX-SAAS repo version - name: Write MDX-SAAS repo version
shell: shell:
cmd: "git rev-parse HEAD > /tmp/mdx-saas-revision" cmd: "git rev-parse HEAD > /tmp/mdx-saas-revision"
... ...
......
# Inventory Aliases # Inventory Aliases
local ansible_connection=local {{ inventory_hostname }} ansible_connection=local
# Hosts that receive the mdsigner role # Hosts that receive the mdsigner role
[mdsigner] [mdsigner]
# Hosts that receive the mdproxy role # Hosts that receive the mdproxy role
[mdproxy] [mdproxy]
local {{ inventory_hostname }}
# Hosts that receive the GeoDNS role # Hosts that receive the GeoDNS role
[geodns] [geodns]
local {{ inventory_hostname }}
# All hosts for base role # All hosts for base role
[all:children] [all:children]
mdsigner mdsigner
mdproxy mdproxy
geodns geodns
...@@ -5,7 +5,7 @@ Description=mdproxy update ...@@ -5,7 +5,7 @@ Description=mdproxy update
Type=oneshot Type=oneshot
WorkingDirectory={{ mdxsaas_dir }} WorkingDirectory={{ mdxsaas_dir }}
ExecStart=git pull 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 ExecStartPost=/bin/systemctl restart mdproxy
[Install] [Install]
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment