mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 11:15:55 +00:00
Replaced groups.ipaserver[0] by ansible_fqdn.
Since we are using docker for running the tests we can no longer rely on groups.ipaserver[0] as the managed host hostname.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
- name: Test sudorule
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
gather_facts: false
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
|
||||
@@ -43,8 +43,7 @@
|
||||
ipahostgroup:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: cluster
|
||||
host:
|
||||
- "{{ groups.ipaserver[0] }}"
|
||||
host: "{{ ansible_fqdn }}"
|
||||
|
||||
- name: Ensure some sudocmds are available
|
||||
ipasudocmd:
|
||||
@@ -501,20 +500,20 @@
|
||||
register: result
|
||||
failed_when: result.changed
|
||||
|
||||
- name: Ensure host "{{ groups.ipaserver[0] }}" is present in sudorule.
|
||||
- name: Ensure host "{{ ansible_fqdn }}" is present in sudorule.
|
||||
ipasudorule:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: testrule1
|
||||
host: "{{ groups.ipaserver[0] }}"
|
||||
host: "{{ ansible_fqdn }}"
|
||||
action: member
|
||||
register: result
|
||||
failed_when: not result.changed
|
||||
|
||||
- name: Ensure host "{{ groups.ipaserver[0] }}" is present in sudorule, again.
|
||||
- name: Ensure host "{{ ansible_fqdn }}" is present in sudorule, again.
|
||||
ipasudorule:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: testrule1
|
||||
host: "{{ groups.ipaserver[0] }}"
|
||||
host: "{{ ansible_fqdn }}"
|
||||
action: member
|
||||
register: result
|
||||
failed_when: result.changed
|
||||
|
||||
Reference in New Issue
Block a user