Debian Codegraph @

ansible_collections/microsoft/ad/tests/integration/targets/service_account/tasks/main.yml

raw symbols SCIP
1 - name: remove temp service account
2 service_account:
3 name: MySA
4 state: absent
5
6 - name: create KDS root key if not present
7 ansible.windows.win_powershell:
8 error_action: stop
9 script: |
10 $Ansible.Changed = $false
11 if (-not (Get-KdsRootKey)) {
12 Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10))
13 $Ansible.Changed = $true
14 }
15 become: true
16 become_method: runas
17 become_user: SYSTEM
18
19 - block:
20 - import_tasks: tests.yml
21
22 always:
23 - name: remove temp service account
24 service_account:
25 name: MySA
26 identity: '{{ object_identity | default(omit) }}'
27 state: absent