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'
|
description: 'Group for Ansible Management'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: fail if win_obs_init__password is unset
|
- name: Fail if win_obs_init__password is unset
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "Please define a password for the user {{ win_base_init__created_user_name }} using 'win_base_init__created_user_password'!"
|
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'
|
when: win_base_init__created_user_password == 'ChangeToSecurePassword'
|
||||||
|
|
||||||
- name: create ansible User
|
- name: Create ansible User
|
||||||
ansible.windows.win_user:
|
ansible.windows.win_user:
|
||||||
name: "{{ win_base_init__created_user_name }}"
|
name: "{{ win_base_init__created_user_name }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -4,17 +4,18 @@
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
register: res
|
register: res
|
||||||
|
|
||||||
- name: host is rebooting in 15 sec!!
|
- name: Host is rebooting in 15 sec!!
|
||||||
ansible.windows.win_reboot:
|
ansible.windows.win_reboot:
|
||||||
pre_reboot_delay: 15
|
pre_reboot_delay: 15
|
||||||
when:
|
when:
|
||||||
- res.reboot_required | bool
|
- res.reboot_required | bool
|
||||||
- win_base_init__allow_reboot | bool
|
- win_base_init__allow_reboot | bool
|
||||||
|
|
||||||
- name: host is rebooting in 15 sec!!
|
- name: Host is rebooting in 15 sec!!
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "Hostname changed. Please reboot to apply changes!"
|
msg: "Hostname changed. Please reboot to apply changes!"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
tags: skip_ansible_lint
|
||||||
when:
|
when:
|
||||||
- res.reboot_required | bool
|
- res.reboot_required | bool
|
||||||
- not win_base_init__allow_reboot | 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
|
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
|
ansible.builtin.include_tasks: ansible_user.yml
|
||||||
|
|
||||||
- name: configure hostname
|
- name: Configure hostname
|
||||||
ansible.builtin.include_tasks: hostname.yml
|
ansible.builtin.include_tasks: hostname.yml
|
||||||
|
|
||||||
- name: configure OS description
|
- name: Configure OS description
|
||||||
ansible.builtin.include_tasks: description.yml
|
ansible.builtin.include_tasks: description.yml
|
||||||
|
|
||||||
- name: install some useful packages
|
- name: Install some useful packages
|
||||||
ansible.builtin.include_tasks: packages.yml
|
ansible.builtin.include_tasks: packages.yml
|
||||||
|
|
||||||
- name: scan for updates
|
- name: Scan for updates
|
||||||
ansible.builtin.include_tasks: updates.yml
|
ansible.builtin.include_tasks: updates.yml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Load language specific windows variables
|
- name: Load language specific windows variables
|
||||||
include_vars: "{{ lookup('first_found', params) }}"
|
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
||||||
vars:
|
vars:
|
||||||
params:
|
params:
|
||||||
files:
|
files:
|
||||||
|
|
Loading…
Reference in a new issue