mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-29 10:54:44 +00:00
Merge pull request #1069 from t-woerner/ansible_lint_fixes
Ansible lint fixes
This commit is contained in:
@@ -93,10 +93,12 @@ options:
|
|||||||
action:
|
action:
|
||||||
description: Work on netgroup or member level
|
description: Work on netgroup or member level
|
||||||
required: false
|
required: false
|
||||||
|
type: str
|
||||||
default: netgroup
|
default: netgroup
|
||||||
choices: ["member", "netgroup"]
|
choices: ["member", "netgroup"]
|
||||||
state:
|
state:
|
||||||
description: The state to ensure.
|
description: The state to ensure.
|
||||||
|
type: str
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
default: present
|
default: present
|
||||||
author:
|
author:
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ def main():
|
|||||||
default=None),
|
default=None),
|
||||||
dictcheck=dict(type="str", aliases=["ipapwdictcheck"],
|
dictcheck=dict(type="str", aliases=["ipapwdictcheck"],
|
||||||
default=None),
|
default=None),
|
||||||
usercheck=dict(type="str", aliases=["ipapwusercheck"],
|
usercheck=dict(type="str", aliases=["ipapwdusercheck"],
|
||||||
default=None),
|
default=None),
|
||||||
gracelimit=dict(type="str", aliases=["passwordgracelimit"],
|
gracelimit=dict(type="str", aliases=["passwordgracelimit"],
|
||||||
default=None),
|
default=None),
|
||||||
|
|||||||
@@ -266,10 +266,8 @@ def unconfigure_dns_resolver(fstore=None):
|
|||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
nameservers=dict(type="list", elements="str", aliases=["cn"],
|
nameservers=dict(type="list", elements="str", required=False),
|
||||||
required=False),
|
searchdomains=dict(type="list", elements="str", required=False),
|
||||||
searchdomains=dict(type="list", elements="str", aliases=["cn"],
|
|
||||||
required=False),
|
|
||||||
state=dict(type="str", default="present",
|
state=dict(type="str", default="present",
|
||||||
choices=["present", "absent"]),
|
choices=["present", "absent"]),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -759,13 +759,12 @@
|
|||||||
"{{ result_ipareplica_prepare.config_master_host_name }}"
|
"{{ result_ipareplica_prepare.config_master_host_name }}"
|
||||||
register: result_ipareplica_enable_ipa
|
register: result_ipareplica_enable_ipa
|
||||||
|
|
||||||
|
always:
|
||||||
- name: Install - Cleanup root IPA cache
|
- name: Install - Cleanup root IPA cache
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/root/.ipa_cache"
|
path: "/root/.ipa_cache"
|
||||||
state: absent
|
state: absent
|
||||||
when: result_ipareplica_enable_ipa.changed
|
|
||||||
|
|
||||||
always:
|
|
||||||
- name: Cleanup temporary files
|
- name: Cleanup temporary files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|||||||
@@ -446,12 +446,6 @@
|
|||||||
setup_ca: "{{ result_ipaserver_test.setup_ca }}"
|
setup_ca: "{{ result_ipaserver_test.setup_ca }}"
|
||||||
register: result_ipaserver_enable_ipa
|
register: result_ipaserver_enable_ipa
|
||||||
|
|
||||||
- name: Install - Cleanup root IPA cache
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "/root/.ipa_cache"
|
|
||||||
state: absent
|
|
||||||
when: result_ipaserver_enable_ipa.changed
|
|
||||||
|
|
||||||
- name: Install - Configure firewalld
|
- name: Install - Configure firewalld
|
||||||
ansible.builtin.command: >
|
ansible.builtin.command: >
|
||||||
firewall-cmd
|
firewall-cmd
|
||||||
@@ -480,6 +474,11 @@
|
|||||||
when: ipaserver_setup_firewalld | bool
|
when: ipaserver_setup_firewalld | bool
|
||||||
|
|
||||||
always:
|
always:
|
||||||
|
- name: Install - Cleanup root IPA cache
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/root/.ipa_cache"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Cleanup temporary files
|
- name: Cleanup temporary files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: sid_disabled
|
register: sid_disabled
|
||||||
|
|
||||||
- name: Ensure netbios_name can't be changed without SID enabled.
|
- name: Ensure netbios_name can't be changed without SID enabled. # noqa 503
|
||||||
ipaconfig:
|
ipaconfig:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
failed_when: not result.failed and "SID generation must be enabled" in result.msg
|
failed_when: not result.failed and "SID generation must be enabled" in result.msg
|
||||||
when: sid_disabled.changed
|
when: sid_disabled.changed
|
||||||
|
|
||||||
- name: Ensure SIDs can't be changed without SID enabled.
|
- name: Ensure SIDs can't be changed without SID enabled. # noqa 503
|
||||||
ipaconfig:
|
ipaconfig:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user