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

Fix references to renamed ansible group

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