Commit 89ee8ec8 authored by Robin Sonnabend's avatar Robin Sonnabend

Fix references to renamed ansible group

parent 99dc51c8
......@@ -90,7 +90,7 @@
- name: create service principal
# yamllint disable-line rule:line-length
command: samba-tool spn add "nfs/{{ ansible_fqdn }}" "{{ ansible_hostname | upper }}$"
delegate_to: "{{ hostvars[groups['ad-server'][0]]['ansible_host'] }}"
delegate_to: "{{ hostvars[groups['servers_ad'][0]]['ansible_host'] }}"
tags:
- nfs-server
- service-principal
......@@ -100,7 +100,7 @@
command: samba-tool domain exportkeytab "/root/{{ ansible_fqdn }}.keytab" --principal "nfs/{{ ansible_fqdn }}"
args:
creates: "/root/{{ ansible_fqdn }}.keytab"
delegate_to: "{{ hostvars[groups['ad-server'][0]]['ansible_host'] }}"
delegate_to: "{{ hostvars[groups['servers_ad'][0]]['ansible_host'] }}"
tags:
- nfs-server
- service-principal
......@@ -109,7 +109,7 @@
synchronize:
src: "/root/{{ ansible_fqdn }}.keytab"
dest: "/root/{{ ansible_fqdn }}.keytab"
delegate_to: "{{ hostvars[groups['ad-server'][0]]['ansible_host'] }}"
delegate_to: "{{ hostvars[groups['servers_ad'][0]]['ansible_host'] }}"
tags:
- nfs-server
- service-principal
......@@ -141,7 +141,7 @@
file:
path: "/root/{{ ansible_fqdn }}.keytab"
state: absent
delegate_to: "{{ hostvars[groups['ad-server'][0]]['ansible_host'] }}"
delegate_to: "{{ hostvars[groups['servers_ad'][0]]['ansible_host'] }}"
tags:
- nfs-server
- service-principal
......
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