update linting
This commit is contained in:
parent
ce8466eb48
commit
649bb23e30
5 changed files with 14 additions and 13 deletions
|
@ -5,12 +5,12 @@
|
|||
description: 'Group for Ansible Management'
|
||||
state: present
|
||||
|
||||
- name: fail if win_obs_init__password is unset
|
||||
- name: Fail if win_obs_init__password is unset
|
||||
ansible.builtin.fail:
|
||||
msg: "Please define a password for the user {{ win_base_init__created_user_name }} using 'win_base_init__created_user_password'!"
|
||||
when: win_base_init__created_user_password == 'ChangeToSecurePassword'
|
||||
|
||||
- name: create ansible User
|
||||
- name: Create ansible User
|
||||
ansible.windows.win_user:
|
||||
name: "{{ win_base_init__created_user_name }}"
|
||||
state: present
|
||||
|
|
|
@ -4,17 +4,18 @@
|
|||
name: "{{ inventory_hostname }}"
|
||||
register: res
|
||||
|
||||
- name: host is rebooting in 15 sec!!
|
||||
- name: Host is rebooting in 15 sec!!
|
||||
ansible.windows.win_reboot:
|
||||
pre_reboot_delay: 15
|
||||
when:
|
||||
- res.reboot_required | bool
|
||||
- win_base_init__allow_reboot | bool
|
||||
|
||||
- name: host is rebooting in 15 sec!!
|
||||
- name: Host is rebooting in 15 sec!!
|
||||
ansible.builtin.fail:
|
||||
msg: "Hostname changed. Please reboot to apply changes!"
|
||||
ignore_errors: true
|
||||
tags: skip_ansible_lint
|
||||
when:
|
||||
- res.reboot_required | bool
|
||||
- not win_base_init__allow_reboot | bool
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
---
|
||||
- name: load variables depending on language
|
||||
- name: Load variables depending on language
|
||||
ansible.builtin.include_tasks: variables.yml
|
||||
|
||||
- name: create Ansible Windows Group and User
|
||||
- name: Create Ansible Windows Group and User
|
||||
ansible.builtin.include_tasks: ansible_user.yml
|
||||
|
||||
- name: configure hostname
|
||||
- name: Configure hostname
|
||||
ansible.builtin.include_tasks: hostname.yml
|
||||
|
||||
- name: configure OS description
|
||||
- name: Configure OS description
|
||||
ansible.builtin.include_tasks: description.yml
|
||||
|
||||
- name: install some useful packages
|
||||
- name: Install some useful packages
|
||||
ansible.builtin.include_tasks: packages.yml
|
||||
|
||||
- name: scan for updates
|
||||
- name: Scan for updates
|
||||
ansible.builtin.include_tasks: updates.yml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Load language specific windows variables
|
||||
include_vars: "{{ lookup('first_found', params) }}"
|
||||
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# see https://docs.microsoft.com/de-DE/windows/security/identity-protection/access-control/security-identifiers
|
||||
win_base_init__os_groups:
|
||||
- 'S-1-5-32-545' # Users
|
||||
- 'S-1-5-32-545' # Users
|
||||
- 'Ansibles'
|
||||
- 'S-1-5-32-544' # Administrators
|
||||
- 'S-1-5-32-544' # Administrators
|
||||
|
|
Loading…
Reference in a new issue