mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
Merge pull request #326 from rjeffman/fix_service_tests
Fix service tests.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure management host is absent.
|
# Ensure management host is absent.
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
host: "{{ groups.ipaserver[0] }}"
|
host: "{{ groups.ipaserver[0] }}"
|
||||||
action: member
|
action: member
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure management host is present.
|
# Ensure management host is present.
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
host: "{{ groups.ipaserver[0] }}"
|
host: "{{ groups.ipaserver[0] }}"
|
||||||
action: member
|
action: member
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service is absent
|
# Ensure service is absent
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service is disabled
|
# Ensure service is disabled
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
state: disabled
|
state: disabled
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service is present
|
# Ensure service is present
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
certificate:
|
certificate:
|
||||||
- MIICBjCCAW8CFHnm32VcXaUDGfEGdDL/erPSijUAMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQwHhcNMjAwMTIzMDA1NjQ2WhcNMjEwMTIyMDA1NjQ2WjBCMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBhbnkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYrdVmsr7iT3f67DM5bb1osSEe5/c91UUMEIcFq5wrgBhzVfs8iIMDVC1yiUGTsDLJNJc4nb1tUxeR9K5fh25E6n/eWDBP75NStotjAXRU4Ahi3FNRhWFOKesds5xNqgDk5/dY8UekJv2yUblQuZzeF8b2XFrmHuCaYuFctzPfWwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACF+5RS8Ce0HRixGPu4Xd51i+Kzblg++lx8fDJ8GW5G16/Z1AsB72Hc7etJL2PksHlue/xCq6SA9fIfHc4TBNCiWjPSP1NhHJeYyoPiSkcYsqXuxWyoyRLbnAhBVvhoiqZbUt3u3tGB0uMMA0yJvj07mP7Nea2KdBYVH8X1pM0V+
|
- MIICBjCCAW8CFHnm32VcXaUDGfEGdDL/erPSijUAMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQwHhcNMjAwMTIzMDA1NjQ2WhcNMjEwMTIyMDA1NjQ2WjBCMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBhbnkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYrdVmsr7iT3f67DM5bb1osSEe5/c91UUMEIcFq5wrgBhzVfs8iIMDVC1yiUGTsDLJNJc4nb1tUxeR9K5fh25E6n/eWDBP75NStotjAXRU4Ahi3FNRhWFOKesds5xNqgDk5/dY8UekJv2yUblQuZzeF8b2XFrmHuCaYuFctzPfWwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACF+5RS8Ce0HRixGPu4Xd51i+Kzblg++lx8fDJ8GW5G16/Z1AsB72Hc7etJL2PksHlue/xCq6SA9fIfHc4TBNCiWjPSP1NhHJeYyoPiSkcYsqXuxWyoyRLbnAhBVvhoiqZbUt3u3tGB0uMMA0yJvj07mP7Nea2KdBYVH8X1pM0V+
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service is present
|
# Ensure service is present
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/ihavenodns.info
|
name: HTTP/ihavenodns.info
|
||||||
force: yes
|
force: yes
|
||||||
# state: absent
|
# state: absent
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service is present
|
# Ensure service is present
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.ansible.com
|
name: HTTP/www.ansible.com
|
||||||
skip_host_check: yes
|
skip_host_check: yes
|
||||||
|
|||||||
@@ -7,5 +7,5 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service is present
|
# Ensure service is present
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Service HTTP/www.example.com members allow_create_keytab absent for users, groups, hosts and hostgroups
|
- name: Service HTTP/www.example.com members allow_create_keytab absent for users, groups, hosts and hostgroups
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
allow_create_keytab_user:
|
allow_create_keytab_user:
|
||||||
- user01
|
- user01
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Service HTTP/www.example.com members allow_create_keytab present for users, groups, hosts and hostgroups
|
- name: Service HTTP/www.example.com members allow_create_keytab present for users, groups, hosts and hostgroups
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
allow_create_keytab_user:
|
allow_create_keytab_user:
|
||||||
- user01
|
- user01
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Service HTTP/www.example.com members allow_retrieve_keytab absent for users, groups, hosts and hostgroups
|
- name: Service HTTP/www.example.com members allow_retrieve_keytab absent for users, groups, hosts and hostgroups
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
allow_retrieve_keytab_user:
|
allow_retrieve_keytab_user:
|
||||||
- user01
|
- user01
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Service HTTP/www.example.com members allow_retrieve_keytab present for users, groups, hosts and hostgroups
|
- name: Service HTTP/www.example.com members allow_retrieve_keytab present for users, groups, hosts and hostgroups
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
allow_retrieve_keytab_user:
|
allow_retrieve_keytab_user:
|
||||||
- user01
|
- user01
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service certificate is absent
|
# Ensure service certificate is absent
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
|
|
||||||
certificate:
|
certificate:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure service certificate is present
|
# Ensure service certificate is present
|
||||||
- ipaservice:
|
- ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
certificate:
|
certificate:
|
||||||
- MIICBjCCAW8CFHnm32VcXaUDGfEGdDL/erPSijUAMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQwHhcNMjAwMTIzMDA1NjQ2WhcNMjEwMTIyMDA1NjQ2WjBCMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBhbnkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYrdVmsr7iT3f67DM5bb1osSEe5/c91UUMEIcFq5wrgBhzVfs8iIMDVC1yiUGTsDLJNJc4nb1tUxeR9K5fh25E6n/eWDBP75NStotjAXRU4Ahi3FNRhWFOKesds5xNqgDk5/dY8UekJv2yUblQuZzeF8b2XFrmHuCaYuFctzPfWwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACF+5RS8Ce0HRixGPu4Xd51i+Kzblg++lx8fDJ8GW5G16/Z1AsB72Hc7etJL2PksHlue/xCq6SA9fIfHc4TBNCiWjPSP1NhHJeYyoPiSkcYsqXuxWyoyRLbnAhBVvhoiqZbUt3u3tGB0uMMA0yJvj07mP7Nea2KdBYVH8X1pM0V+
|
- MIICBjCCAW8CFHnm32VcXaUDGfEGdDL/erPSijUAMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQwHhcNMjAwMTIzMDA1NjQ2WhcNMjEwMTIyMDA1NjQ2WjBCMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBhbnkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYrdVmsr7iT3f67DM5bb1osSEe5/c91UUMEIcFq5wrgBhzVfs8iIMDVC1yiUGTsDLJNJc4nb1tUxeR9K5fh25E6n/eWDBP75NStotjAXRU4Ahi3FNRhWFOKesds5xNqgDk5/dY8UekJv2yUblQuZzeF8b2XFrmHuCaYuFctzPfWwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACF+5RS8Ce0HRixGPu4Xd51i+Kzblg++lx8fDJ8GW5G16/Z1AsB72Hc7etJL2PksHlue/xCq6SA9fIfHc4TBNCiWjPSP1NhHJeYyoPiSkcYsqXuxWyoyRLbnAhBVvhoiqZbUt3u3tGB0uMMA0yJvj07mP7Nea2KdBYVH8X1pM0V+
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Service HTTP/www.exmaple.com member principals host/test.exmaple.com absent
|
- name: Service HTTP/www.exmaple.com member principals host/test.exmaple.com absent
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
principal:
|
principal:
|
||||||
- host/test.exmaple.com
|
- host/test.exmaple.com
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Service HTTP/www.exmaple.com member principals host/test.exmaple.com present
|
- name: Service HTTP/www.exmaple.com member principals host/test.exmaple.com present
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.example.com
|
name: HTTP/www.example.com
|
||||||
principal:
|
principal:
|
||||||
- host/test.exmaple.com
|
- host/test.exmaple.com
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# To test against earlier versions, use test_without_skip_host_check.yml.
|
# To test against earlier versions, use test_without_skip_host_check.yml.
|
||||||
#
|
#
|
||||||
# This test define 6 hosts:
|
# This test define 6 hosts:
|
||||||
# - www.ansible.com: a host with a DNS setup (external), not present in IPA
|
# - nohost_fqdn: a host with a DNS setup, not enrolled as a host in IPA.
|
||||||
# - no.idontexist.info: a host without DNS and not present in IPA.
|
# - no.idontexist.info: a host without DNS and not present in IPA.
|
||||||
# - svc.ihavenodns.inf: a host without DNS, but present in IPA.
|
# - svc.ihavenodns.inf: a host without DNS, but present in IPA.
|
||||||
# - svc_fqdn: a host with DNS and present in IPA.
|
# - svc_fqdn: a host with DNS and present in IPA.
|
||||||
@@ -27,12 +27,21 @@
|
|||||||
host1_fqdn: "{{ 'host1.' + ipaserver_domain }}"
|
host1_fqdn: "{{ 'host1.' + ipaserver_domain }}"
|
||||||
host2_fqdn: "{{ 'host2.' + ipaserver_domain }}"
|
host2_fqdn: "{{ 'host2.' + ipaserver_domain }}"
|
||||||
svc_fqdn: "{{ 'svc.' + ipaserver_domain }}"
|
svc_fqdn: "{{ 'svc.' + ipaserver_domain }}"
|
||||||
|
nohost_fqdn: "{{ 'nohost.' + ipaserver_domain }}"
|
||||||
|
|
||||||
|
- name: Remove IP address for "nohost" host.
|
||||||
|
ipadnsrecord:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
zone_name: "{{ ipaserver_domain }}"
|
||||||
|
name: nohost
|
||||||
|
del_all: yes
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Host absent
|
- name: Host absent
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name:
|
name:
|
||||||
- www.ansible.com
|
- "{{ nohost_fqdn }}"
|
||||||
- no.idontexist.info
|
- no.idontexist.info
|
||||||
- svc.ihavenodns.info
|
- svc.ihavenodns.info
|
||||||
- "{{ host1_fqdn }}"
|
- "{{ host1_fqdn }}"
|
||||||
@@ -46,13 +55,19 @@
|
|||||||
ipv4_prefix: "{{ ansible_default_ipv4.address.split('.')[:-1] |
|
ipv4_prefix: "{{ ansible_default_ipv4.address.split('.')[:-1] |
|
||||||
join('.') }}"
|
join('.') }}"
|
||||||
|
|
||||||
|
- name: Add IP address for "nohost" host.
|
||||||
|
ipadnsrecord:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
zone_name: "{{ ipaserver_domain }}"
|
||||||
|
name: nohost
|
||||||
|
a_ip_address: "{{ ipv4_prefix + '.100' }}"
|
||||||
|
|
||||||
- name: Add hosts for tests.
|
- name: Add hosts for tests.
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
hosts:
|
hosts:
|
||||||
- name: "{{ host1_fqdn }}"
|
- name: "{{ host1_fqdn }}"
|
||||||
ip_address: "{{ ipv4_prefix + '.101' }}"
|
ip_address: "{{ ipv4_prefix + '.101' }}"
|
||||||
force: yes
|
|
||||||
- name: "{{ host2_fqdn }}"
|
- name: "{{ host2_fqdn }}"
|
||||||
ip_address: "{{ ipv4_prefix + '.102' }}"
|
ip_address: "{{ ipv4_prefix + '.102' }}"
|
||||||
force: yes
|
force: yes
|
||||||
@@ -101,7 +116,7 @@
|
|||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name:
|
name:
|
||||||
- "HTTP/{{ svc_fqdn }}"
|
- "HTTP/{{ svc_fqdn }}"
|
||||||
- HTTP/www.ansible.com
|
- "HTTP/{{ nohost_fqdn }}"
|
||||||
- HTTP/svc.ihavenodns.info
|
- HTTP/svc.ihavenodns.info
|
||||||
- HTTP/no.idontexist.info
|
- HTTP/no.idontexist.info
|
||||||
state: absent
|
state: absent
|
||||||
@@ -162,7 +177,7 @@
|
|||||||
- name: Ensure service is present, without host object.
|
- name: Ensure service is present, without host object.
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.ansible.com
|
name: "HTTP/{{ nohost_fqdn }}"
|
||||||
skip_host_check: yes
|
skip_host_check: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed
|
||||||
@@ -170,7 +185,7 @@
|
|||||||
- name: Ensure service is present, without host object, again.
|
- name: Ensure service is present, without host object, again.
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: HTTP/www.ansible.com
|
name: "HTTP/{{ nohost_fqdn }}"
|
||||||
skip_host_check: yes
|
skip_host_check: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed
|
||||||
@@ -523,7 +538,7 @@
|
|||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name:
|
name:
|
||||||
- "HTTP/{{ svc_fqdn }}"
|
- "HTTP/{{ svc_fqdn }}"
|
||||||
- HTTP/www.ansible.com
|
- "HTTP/{{ nohost_fqdn }}"
|
||||||
- HTTP/svc.ihavenodns.info
|
- HTTP/svc.ihavenodns.info
|
||||||
- HTTP/no.idontexist.local
|
- HTTP/no.idontexist.local
|
||||||
continue: yes
|
continue: yes
|
||||||
@@ -536,7 +551,7 @@
|
|||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name:
|
name:
|
||||||
- "HTTP/{{ svc_fqdn }}"
|
- "HTTP/{{ svc_fqdn }}"
|
||||||
- HTTP/www.ansible.com
|
- "HTTP/{{ nohost_fqdn }}"
|
||||||
- HTTP/svc.ihavenodns.info
|
- HTTP/svc.ihavenodns.info
|
||||||
- HTTP/no.idontexist.local
|
- HTTP/no.idontexist.local
|
||||||
continue: yes
|
continue: yes
|
||||||
@@ -585,7 +600,7 @@
|
|||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
name:
|
name:
|
||||||
- "HTTP/{{ svc_fqdn }}"
|
- "HTTP/{{ svc_fqdn }}"
|
||||||
- HTTP/www.ansible.com
|
- "HTTP/{{ nohost_fqdn }}"
|
||||||
- HTTP/svc.ihavenodns.info
|
- HTTP/svc.ihavenodns.info
|
||||||
- HTTP/no.idontexist.local
|
- HTTP/no.idontexist.local
|
||||||
- "cifs/{{ host1_fqdn }}"
|
- "cifs/{{ host1_fqdn }}"
|
||||||
@@ -604,7 +619,7 @@
|
|||||||
name:
|
name:
|
||||||
- "{{ host1_fqdn }}"
|
- "{{ host1_fqdn }}"
|
||||||
- "{{ host2_fqdn }}"
|
- "{{ host2_fqdn }}"
|
||||||
- www.ansible.com
|
- "{{ nohost_fqdn }}"
|
||||||
- svc.ihavenodns.info
|
- svc.ihavenodns.info
|
||||||
update_dns: no
|
update_dns: no
|
||||||
state: absent
|
state: absent
|
||||||
@@ -638,3 +653,11 @@
|
|||||||
name:
|
name:
|
||||||
- hostgroup02
|
- hostgroup02
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- name: Remove IP address for "nohost" host.
|
||||||
|
ipadnsrecord:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
zone_name: "{{ ipaserver_domain }}"
|
||||||
|
name: nohost
|
||||||
|
del_all: yes
|
||||||
|
state: absent
|
||||||
|
|||||||
@@ -74,6 +74,14 @@
|
|||||||
register: result
|
register: result
|
||||||
failed_when: result.failed or result.stdout | regex_search(" Keytab. true")
|
failed_when: result.failed or result.stdout | regex_search(" Keytab. true")
|
||||||
|
|
||||||
|
- name: Ensure service is disabled, with no keytab.
|
||||||
|
ipaservice:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
name: "mysvc1/{{ ansible_fqdn }}"
|
||||||
|
state: disabled
|
||||||
|
register: result
|
||||||
|
failed_when: result.changed
|
||||||
|
|
||||||
- name: Ensure service is absent
|
- name: Ensure service is absent
|
||||||
ipaservice:
|
ipaservice:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
|||||||
Reference in New Issue
Block a user