committed by
GitHub
parent
0b1904e727
commit
3400e73675
@@ -283,7 +283,7 @@ controller_workflows:
|
|||||||
- identifier: Deploy Windows GUI Blueprint
|
- identifier: Deploy Windows GUI Blueprint
|
||||||
unified_job_template: Cloud / AWS / Create VM
|
unified_job_template: Cloud / AWS / Create VM
|
||||||
extra_data:
|
extra_data:
|
||||||
create_vm_vm_name: aws_dc
|
create_vm_vm_name: aws-dc
|
||||||
vm_blueprint: windows_full
|
vm_blueprint: windows_full
|
||||||
success_nodes:
|
success_nodes:
|
||||||
- Update Inventory
|
- Update Inventory
|
||||||
|
|||||||
@@ -3,9 +3,10 @@ version: 3
|
|||||||
images:
|
images:
|
||||||
base_image:
|
base_image:
|
||||||
name: registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel9:latest
|
name: registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel9:latest
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
galaxy: requirements-25.yml
|
galaxy: requirements-25.yml
|
||||||
|
system:
|
||||||
|
- python3.11-devel [platform:rpm]
|
||||||
python:
|
python:
|
||||||
- pywinrm>=0.4.3
|
- pywinrm>=0.4.3
|
||||||
python_interpreter:
|
python_interpreter:
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ collections:
|
|||||||
- name: redhat.rhel_system_roles
|
- name: redhat.rhel_system_roles
|
||||||
version: ">=1.23.0"
|
version: ">=1.23.0"
|
||||||
# windows demos
|
# windows demos
|
||||||
|
- name: microsoft.ad
|
||||||
|
version: "1.9"
|
||||||
- name: ansible.windows
|
- name: ansible.windows
|
||||||
version: ">=2.3.0"
|
version: ">=2.3.0"
|
||||||
- name: chocolatey.chocolatey
|
- name: chocolatey.chocolatey
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ collections:
|
|||||||
- name: redhat.rhel_system_roles
|
- name: redhat.rhel_system_roles
|
||||||
version: ">=1.23.0"
|
version: ">=1.23.0"
|
||||||
# windows
|
# windows
|
||||||
|
- name: microsoft.ad
|
||||||
|
version: "1.9"
|
||||||
- name: ansible.windows
|
- name: ansible.windows
|
||||||
version: ">=2.3.0"
|
version: ">=2.3.0"
|
||||||
- name: chocolatey.chocolatey
|
- name: chocolatey.chocolatey
|
||||||
|
|||||||
@@ -12,14 +12,17 @@
|
|||||||
- name: Update the hostname
|
- name: Update the hostname
|
||||||
ansible.windows.win_hostname:
|
ansible.windows.win_hostname:
|
||||||
name: "{{ inventory_hostname.split('.')[0] }}"
|
name: "{{ inventory_hostname.split('.')[0] }}"
|
||||||
|
register: r_rename_hostname
|
||||||
|
|
||||||
- name: Reboot to apply new hostname
|
- name: Reboot to apply new hostname
|
||||||
|
# noqa no-handler
|
||||||
|
when: r_rename_hostname is changed
|
||||||
ansible.windows.win_reboot:
|
ansible.windows.win_reboot:
|
||||||
reboot_timeout: 3600
|
reboot_timeout: 3600
|
||||||
|
|
||||||
- name: Create new domain in a new forest on the target host
|
- name: Create new domain in a new forest on the target host
|
||||||
register: r_create_domain
|
register: r_create_domain
|
||||||
ansible.windows.win_domain:
|
microsoft.ad.domain:
|
||||||
dns_domain_name: ansible.local
|
dns_domain_name: ansible.local
|
||||||
safe_mode_password: "{{ lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1) }}"
|
safe_mode_password: "{{ lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1) }}"
|
||||||
|
|
||||||
@@ -30,7 +33,7 @@
|
|||||||
file: tasks/domain_services_check.yml
|
file: tasks/domain_services_check.yml
|
||||||
|
|
||||||
- name: Create some groups
|
- name: Create some groups
|
||||||
community.windows.win_domain_group:
|
microsoft.ad.group:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
scope: global
|
scope: global
|
||||||
loop:
|
loop:
|
||||||
@@ -41,7 +44,7 @@
|
|||||||
delay: 10
|
delay: 10
|
||||||
|
|
||||||
- name: Create some users
|
- name: Create some users
|
||||||
community.windows.win_domain_user:
|
microsoft.ad.user:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
groups: "{{ item.groups }}"
|
groups: "{{ item.groups }}"
|
||||||
password: "{{ lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1) }}"
|
password: "{{ lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user