update AD jobs

This commit is contained in:
willtome
2022-09-12 15:21:35 -04:00
parent d5f48f3ac5
commit dd57dec713
3 changed files with 66 additions and 66 deletions

View File

@@ -7,7 +7,7 @@
- name: Create new domain in a new forest on the target host - name: Create new domain in a new forest on the target host
ansible.windows.win_domain: ansible.windows.win_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: "{{ ansible_password }}"
register: new_forest register: new_forest
- name: Reboot the target host - name: Reboot the target host
@@ -36,7 +36,7 @@
community.windows.win_domain_user: community.windows.win_domain_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: "{{ ansible_password }}"
update_password: on_create update_password: on_create
loop: loop:
- { name: "UserA", groups: "GroupA" } - { name: "UserA", groups: "GroupA" }

View File

@@ -208,68 +208,68 @@ controller_templates:
variable: HOSTS variable: HOSTS
required: false required: false
# - name: "ACTIVE DIRECTORY / Create Active Directory domain" - name: "WINDOWS / AD /Create Domain"
# job_type: run job_type: run
# inventory: "Workshop Inventory" inventory: "Workshop Inventory"
# project: "Ansible official demo project" project: "Ansible official demo project"
# playbook: "windows/active_directory/create_ad_domain.yml" playbook: "windows/create_ad_domain.yml"
# execution_environment: Default execution environment execution_environment: Default execution environment
# notification_templates_started: Telemetry notification_templates_started: Telemetry
# notification_templates_success: Telemetry notification_templates_success: Telemetry
# notification_templates_error: Telemetry notification_templates_error: Telemetry
# credentials: credentials:
# - "Workshop Credential" - "Workshop Credential"
# survey_enabled: true survey_enabled: true
# survey: survey:
# name: '' name: ''
# description: '' description: ''
# spec: spec:
# - question_name: Server Name or Pattern - question_name: Server Name or Pattern
# type: text type: text
# variable: HOSTS variable: HOSTS
# required: false required: false
# - name: "ACTIVE DIRECTORY / Helpdesk new user portal" - name: "WINDOWS / AD / New User"
# job_type: run job_type: run
# inventory: "Workshop Inventory" inventory: "Workshop Inventory"
# project: "Ansible official demo project" project: "Ansible official demo project"
# playbook: "windows/active_directory/helpdesk_new_user_portal.yml" playbook: "windows/helpdesk_new_user_portal.yml"
# execution_environment: Default execution environment execution_environment: Default execution environment
# notification_templates_started: Telemetry notification_templates_started: Telemetry
# notification_templates_success: Telemetry notification_templates_success: Telemetry
# notification_templates_error: Telemetry notification_templates_error: Telemetry
# credentials: credentials:
# - "Workshop Credential" - "Workshop Credential"
# survey_enabled: true survey_enabled: true
# survey: survey:
# name: '' name: ''
# description: '' description: ''
# spec: spec:
# - question_name: Firstname - question_name: Firstname
# type: text type: text
# variable: firstname variable: firstname
# required: true required: true
# - question_name: Surname - question_name: Surname
# type: text type: text
# variable: surname variable: surname
# required: true required: true
# - question_name: Street - question_name: Street
# type: text type: text
# variable: street variable: street
# default: 123 4th St. default: 123 4th St.
# required: false required: false
# - question_name: City - question_name: City
# type: text type: text
# variable: city variable: city
# default: Sometown default: Sometown
# required: false required: false
# - question_name: Postal code - question_name: Postal code
# type: text type: text
# variable: postal_code variable: postal_code
# default: IN default: IN
# required: false required: false
# - question_name: Telephone number - question_name: Telephone number
# type: text type: text
# variable: telephone_number variable: telephone_number
# default: 555-123456 default: 555-123456
# required: false required: false