| 1 |
- name: setup local configuration and scratch information |
| 2 |
hosts: localhost |
| 3 |
gather_facts: no |
| 4 |
|
| 5 |
tasks: |
| 6 |
- name: create cert output folder |
| 7 |
file: |
| 8 |
path: '{{ playbook_dir }}/cert_setup' |
| 9 |
state: directory |
| 10 |
|
| 11 |
- name: create generate_cert script |
| 12 |
template: |
| 13 |
src: generate_cert.sh.tmpl |
| 14 |
dest: '{{ playbook_dir }}/cert_setup/generate_cert.sh' |
| 15 |
mode: '700' |
| 16 |
|
| 17 |
- name: generate CA and LDAPS certificates |
| 18 |
shell: ./generate_cert.sh password |
| 19 |
args: |
| 20 |
creates: '{{ playbook_dir }}/cert_setup/complete.txt' |
| 21 |
chdir: '{{ playbook_dir }}/cert_setup' |
| 22 |
|
| 23 |
- name: get network adapter for each Windows host |
| 24 |
hosts: windows |
| 25 |
gather_facts: no |
| 26 |
tasks: |
| 27 |
- name: get network connection for private adapter |
| 28 |
ansible.windows.win_powershell: |
| 29 |
parameters: |
| 30 |
IPAddress: '{{ ansible_host }}' |
| 31 |
script: | |
| 32 |
param($IPAddress) |
| 33 |
|
| 34 |
$Ansible.Changed = $false |
| 35 |
|
| 36 |
foreach ($instance in (Get-CimInstance -ClassName Win32_NetworkAdapter -Filter "Netenabled='True'")) { |
| 37 |
$config = Get-CimInstance -ClassName WIn32_NetworkAdapterConfiguration -Filter "Index = '$($instance.Index)'" |
| 38 |
if ($config.IPAddress -contains $IPAddress) { |
| 39 |
$instance.NetConnectionID |
| 40 |
} |
| 41 |
} |
| 42 |
register: network_connection_name_raw |
| 43 |
|
| 44 |
- name: fail if we didn't get a network connection name |
| 45 |
fail: |
| 46 |
msg: Failed to get the Windows network connection name |
| 47 |
when: network_connection_name_raw.output | count != 1 |
| 48 |
|
| 49 |
- name: set fact of network connection name |
| 50 |
set_fact: |
| 51 |
network_connection_name: '{{ network_connection_name_raw.output[0] }}' |
| 52 |
|
| 53 |
- name: copy CA certificate |
| 54 |
win_copy: |
| 55 |
src: '{{ playbook_dir }}/cert_setup/ca.pem' |
| 56 |
dest: C:\Windows\TEMP\ca.pem |
| 57 |
|
| 58 |
- name: import CA certificate to trusted root CA |
| 59 |
win_certificate_store: |
| 60 |
path: C:\Windows\TEMP\ca.pem |
| 61 |
state: present |
| 62 |
store_location: LocalMachine |
| 63 |
store_name: Root |
| 64 |
|
| 65 |
- name: create Domain Controller |
| 66 |
hosts: win_controller |
| 67 |
gather_facts: no |
| 68 |
tasks: |
| 69 |
- name: set the DNS for the specified adapter to localhost |
| 70 |
win_dns_client: |
| 71 |
adapter_name: '{{ network_connection_name }}' |
| 72 |
ipv4_addresses: 127.0.0.1 |
| 73 |
|
| 74 |
- name: ensure domain exists and DC is promoted as a domain controller |
| 75 |
win_domain: |
| 76 |
dns_domain_name: '{{ domain_name }}' |
| 77 |
safe_mode_password: '{{ domain_password }}' |
| 78 |
register: domain_setup_res |
| 79 |
|
| 80 |
- name: reboot DC if required after install |
| 81 |
win_reboot: |
| 82 |
when: domain_setup_res.reboot_required |
| 83 |
|
| 84 |
- name: create domain username |
| 85 |
win_domain_user: |
| 86 |
name: '{{ domain_username }}' |
| 87 |
upn: '{{ domain_upn }}' |
| 88 |
description: '{{ domain_username }} Domain Account' |
| 89 |
password: '{{ domain_password }}' |
| 90 |
password_never_expires: yes |
| 91 |
update_password: on_create |
| 92 |
groups: |
| 93 |
- Domain Admins |
| 94 |
state: present |
| 95 |
|
| 96 |
- name: test out domain user that was created |
| 97 |
win_whoami: |
| 98 |
register: become_res |
| 99 |
failed_when: become_res.upn != domain_upn |
| 100 |
become: yes |
| 101 |
become_method: runas |
| 102 |
vars: |
| 103 |
ansible_become_user: '{{ domain_upn }}' |
| 104 |
ansible_become_pass: '{{ domain_password }}' |
| 105 |
|
| 106 |
- name: copy LDAPS certificate |
| 107 |
win_copy: |
| 108 |
src: '{{ playbook_dir }}/cert_setup/DC01.pfx' |
| 109 |
dest: C:\Windows\TEMP\ldaps.pfx |
| 110 |
|
| 111 |
- name: import LDAPS certificate |
| 112 |
win_certificate_store: |
| 113 |
path: C:\Windows\TEMP\ldaps.pfx |
| 114 |
password: password |
| 115 |
key_exportable: no |
| 116 |
key_storage: machine |
| 117 |
state: present |
| 118 |
store_type: service |
| 119 |
store_location: NTDS |
| 120 |
store_name: My |
| 121 |
register: ldaps_cert_info |
| 122 |
|
| 123 |
- name: register LDAPS certificate |
| 124 |
ansible.windows.win_powershell: |
| 125 |
script: | |
| 126 |
$dse = [adsi]'LDAP://localhost/rootDSE' |
| 127 |
[void]$dse.Properties['renewServerCertificate'].Add(1) |
| 128 |
$dse.CommitChanges() |
| 129 |
when: ldaps_cert_info is changed |
| 130 |
vars: |
| 131 |
ansible_become: yes |
| 132 |
ansible_become_method: runas |
| 133 |
ansible_become_user: '{{ domain_upn }}' |
| 134 |
ansible_become_pass: '{{ domain_password }}' |
| 135 |
|
| 136 |
- name: join Windows host to domain |
| 137 |
hosts: win_children |
| 138 |
gather_facts: no |
| 139 |
tasks: |
| 140 |
- name: set the DNS for the private adapter to point to the DC |
| 141 |
win_dns_client: |
| 142 |
adapter_names: '{{ network_connection_name }}' |
| 143 |
ipv4_addresses: '{{ hostvars[groups["win_controller"][0]]["ansible_host"] }}' |
| 144 |
|
| 145 |
- name: join host to domain |
| 146 |
win_domain_membership: |
| 147 |
dns_domain_name: '{{ domain_name }}' |
| 148 |
domain_admin_user: '{{ domain_upn }}' |
| 149 |
domain_admin_password: '{{ domain_password }}' |
| 150 |
state: domain |
| 151 |
register: domain_join_result |
| 152 |
|
| 153 |
- name: trust hosts for delegation in AD |
| 154 |
ansible.windows.win_powershell: |
| 155 |
parameters: |
| 156 |
ComputerName: '{{ inventory_hostname }}' |
| 157 |
script: | |
| 158 |
param($ComputerName) |
| 159 |
|
| 160 |
$ErrorActionPreference = 'Stop' |
| 161 |
$Ansible.Changed = $false |
| 162 |
|
| 163 |
|
| 164 |
$actual = (Get-ADComputer -Identity $ComputerName -Property TrustedForDelegation).TrustedForDelegation |
| 165 |
if (-not $actual) { |
| 166 |
Set-ADComputer -Identity $ComputerName -TrustedForDelegation $true |
| 167 |
$Ansible.Changed = $true |
| 168 |
} |
| 169 |
when: inventory_hostname == 'SERVER2022' # We only want to have this hosted with delegation for testing |
| 170 |
delegate_to: '{{ groups["win_controller"][0] }}' |
| 171 |
|
| 172 |
- name: reboot host to finalise domain join |
| 173 |
win_reboot: |
| 174 |
when: domain_join_result.reboot_required |
| 175 |
|
| 176 |
- name: test out domain user logon |
| 177 |
win_whoami: |
| 178 |
register: become_res |
| 179 |
failed_when: become_res.upn != domain_upn |
| 180 |
become: yes |
| 181 |
become_method: runas |
| 182 |
vars: |
| 183 |
ansible_become_user: '{{ domain_upn }}' |
| 184 |
ansible_become_pass: '{{ domain_password }}' |
| 185 |
|
| 186 |
# Use the following to get a snaphot of programs installed and their product_ids |
| 187 |
# 'SOFTWARE', 'SOFTWARE\Wow6432Node' | ForEach-Object { |
| 188 |
# $getParams = @{ |
| 189 |
# Path = "HKLM:\$_\Microsoft\Windows\CurrentVersion\Uninstall\*" |
| 190 |
# Name = 'DisplayName' |
| 191 |
# ErrorAction = 'SilentlyContinue' |
| 192 |
# } |
| 193 |
# Get-ItemProperty @getParams | Select-Object -Property @( |
| 194 |
# @{ N = 'Name'; E = { $_.DisplayName } }, |
| 195 |
# @{ N = 'AppId'; E = { $_.PSChildName } } |
| 196 |
# ) |
| 197 |
# } | Where-Object { $_.Name -like 'Python * Standard Library *' } |
| 198 |
|
| 199 |
- name: set up Python interpreters on test Windows host |
| 200 |
hosts: SERVER2012R2 |
| 201 |
gather_facts: no |
| 202 |
tasks: |
| 203 |
- name: install Python interpreters |
| 204 |
win_package: |
| 205 |
path: '{{ item.url }}' |
| 206 |
arguments: '{{ item.arguments }}' |
| 207 |
product_id: '{{ item.product_id }}' |
| 208 |
state: present |
| 209 |
with_items: |
| 210 |
- url: https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe |
| 211 |
product_id: '{4196628C-AE5C-4304-B166-B7C1E93CDC25}' |
| 212 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 213 |
- url: https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe |
| 214 |
product_id: '{080E0048-853C-49FB-96ED-30DEF7AB6E34}' |
| 215 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 216 |
- url: https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe |
| 217 |
product_id: '{E23C472D-F346-4D47-A909-9D48E5D7252F}' |
| 218 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 219 |
- url: https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe |
| 220 |
product_id: '{90A30DAB-6FD8-4CF8-BB8B-C0DB21C69F20}' |
| 221 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 222 |
- url: https://www.python.org/ftp/python/3.10.9/python-3.10.9.exe |
| 223 |
product_id: '{335CD0FB-50DC-44D2-80E3-39749356F8D6}' |
| 224 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 225 |
- url: https://www.python.org/ftp/python/3.10.9/python-3.10.9-amd64.exe |
| 226 |
product_id: '{0CBB496F-1D15-42F1-AA45-C01C95196EC8}' |
| 227 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 228 |
- url: https://www.python.org/ftp/python/3.11.1/python-3.11.1.exe |
| 229 |
product_id: '{E5CB3216-2C88-4E4B-ADCA-56E9BAEE7404}' |
| 230 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 231 |
- url: https://www.python.org/ftp/python/3.11.1/python-3.11.1-amd64.exe |
| 232 |
product_id: '{21EEFB31-6A96-4CAE-9A3B-B7FD6374C155}' |
| 233 |
arguments: /quiet InstallAllUsers=1 Shortcuts=0 |
| 234 |
|
| 235 |
- name: ensure virtualenv package is installed for each Python install |
| 236 |
win_command: '"{{ item }}\python.exe" -m pip install virtualenv' |
| 237 |
args: |
| 238 |
creates: '{{ item }}\Scripts\virtualenv.exe' |
| 239 |
with_items: '{{ python_interpreters }}' |
| 240 |
|
| 241 |
- name: create virtualenv for each Python install |
| 242 |
win_command: '"{{ item }}\python.exe" -m virtualenv "{{ python_venv_path }}\{{ item | win_basename }}"' |
| 243 |
args: |
| 244 |
creates: '{{ python_venv_path }}\{{ item | win_basename }}' |
| 245 |
with_items: '{{ python_interpreters }}' |
| 246 |
|
| 247 |
- name: copy across wheel artifacts |
| 248 |
win_copy: |
| 249 |
src: artifact.zip |
| 250 |
dest: C:\temp\wheels.zip |
| 251 |
|
| 252 |
- name: ensure wheel dir exists |
| 253 |
win_file: |
| 254 |
path: C:\temp\wheels |
| 255 |
state: directory |
| 256 |
|
| 257 |
- name: extract wheel from archive |
| 258 |
win_unzip: |
| 259 |
src: C:\temp\wheels.zip |
| 260 |
dest: C:\temp\wheels |
| 261 |
|
| 262 |
- name: get pyspnego artifact sdist filename |
| 263 |
win_find: |
| 264 |
paths: C:\temp\wheels |
| 265 |
patterns: 'pyspnego-*.tar.gz' |
| 266 |
use_regex: false |
| 267 |
register: spnego_sdist_file |
| 268 |
|
| 269 |
- name: verify sdist was found |
| 270 |
assert: |
| 271 |
that: |
| 272 |
- spnego_sdist_file.files | count == 1 |
| 273 |
|
| 274 |
- name: get pyspnego artifact version |
| 275 |
set_fact: |
| 276 |
spnego_version: >- |
| 277 |
{{ spnego_sdist_file.files[0].filename | regex_replace('pyspnego-(?P<version>.*)\.tar\.gz', '\g<version>') }} |
| 278 |
|
| 279 |
- name: install pyspnego into virtualenv |
| 280 |
win_command: >- |
| 281 |
"{{ python_venv_path }}\{{ item | win_basename }}\Scripts\python.exe" -m pip |
| 282 |
install |
| 283 |
pyspnego=={{ spnego_version }} |
| 284 |
pytest |
| 285 |
requests |
| 286 |
https://github.com/jborean93/sansldap/archive/174408ab40e42f9a2d34bc493027e43cc5d31715.zip |
| 287 |
--find-links=C:/temp/wheels |
| 288 |
args: |
| 289 |
creates: '{{ python_venv_path }}\{{ item | win_basename }}\Lib\site-packages\spnego' |
| 290 |
with_items: '{{ python_interpreters }}' |
| 291 |
|
| 292 |
- name: template out test integration file |
| 293 |
win_template: |
| 294 |
src: test_integration.py.tmpl |
| 295 |
dest: C:\temp\test_integration.py |
| 296 |
block_start_string: '{!!' |
| 297 |
block_end_string: '!!}' |
| 298 |
tags: |
| 299 |
- template |
| 300 |
|
| 301 |
- name: set up WinRM config and SMB shares on Windows hosts |
| 302 |
hosts: windows |
| 303 |
gather_facts: no |
| 304 |
tasks: |
| 305 |
- name: set WinRM Cbt value to Strict |
| 306 |
ansible.windows.win_powershell: |
| 307 |
script: | |
| 308 |
$ErrorActionPreference = 'Stop' |
| 309 |
$Ansible.Changed = $false |
| 310 |
|
| 311 |
$val = (Get-Item -LiteralPath WSMan:\localhost\Service\Auth\CbtHardeningLevel).Value |
| 312 |
if ($val -ne 'Strict') { |
| 313 |
Set-Item -LiteralPath WSMan:\localhost\Service\Auth\CbtHardeningLevel -Value Strict |
| 314 |
$Ansible.Changed = $true |
| 315 |
} |
| 316 |
|
| 317 |
- name: enable WSMan CredSSP Server |
| 318 |
ansible.windows.win_powershell: |
| 319 |
script: | |
| 320 |
$ErrorActionPreference = 'Stop' |
| 321 |
$Ansible.Changed = $false |
| 322 |
|
| 323 |
$val = (Get-Item -LiteralPath WSMan:\localhost\Service\Auth\CredSSP).Value |
| 324 |
if ($val -ne 'true') { |
| 325 |
$null = Enable-WSManCredSSP -Role Server |
| 326 |
$Ansible.Changed = $true |
| 327 |
} |
| 328 |
|
| 329 |
- name: allow SMB traffic in |
| 330 |
win_firewall_rule: |
| 331 |
name: File and Printer Sharing (SMB-In) |
| 332 |
state: present |
| 333 |
enabled: yes |
| 334 |
|
| 335 |
- name: set up Linux host |
| 336 |
hosts: linux_children |
| 337 |
gather_facts: no |
| 338 |
become: yes |
| 339 |
handlers: |
| 340 |
- name: restart NetworkManager.service |
| 341 |
service: |
| 342 |
name: NetworkManager.service |
| 343 |
state: restarted |
| 344 |
|
| 345 |
tasks: |
| 346 |
- name: install base packages |
| 347 |
yum: |
| 348 |
name: |
| 349 |
- dnsmasq |
| 350 |
- epel-release |
| 351 |
- gcc |
| 352 |
- python39 |
| 353 |
- python3-devel |
| 354 |
- unzip |
| 355 |
- vim |
| 356 |
state: present |
| 357 |
|
| 358 |
- name: install kerberos packages |
| 359 |
yum: |
| 360 |
name: '{{ krb_packages }}' |
| 361 |
state: present |
| 362 |
|
| 363 |
- name: ensure virtualenv is installed on base Python interpreters |
| 364 |
pip: |
| 365 |
name: |
| 366 |
- virtualenv |
| 367 |
executable: /usr/bin/pip3.9 |
| 368 |
|
| 369 |
- name: setup NetworkManager to use dnsmasq |
| 370 |
copy: |
| 371 |
dest: /etc/NetworkManager/conf.d/dns.conf |
| 372 |
content: | |
| 373 |
[main] |
| 374 |
dns=dnsmasq |
| 375 |
notify: restart NetworkManager.service |
| 376 |
|
| 377 |
- name: set dnsmasq to forward requests for domain to DC |
| 378 |
copy: |
| 379 |
dest: /etc/NetworkManager/dnsmasq.d/{{ domain_name }} |
| 380 |
content: server=/{{ domain_name }}/{{ hostvars[groups['win_controller'][0]]["ansible_host"] }} |
| 381 |
notify: restart NetworkManager.service |
| 382 |
|
| 383 |
- name: template krb5.conf file |
| 384 |
template: |
| 385 |
src: krb5.conf.tmpl |
| 386 |
dest: /etc/krb5.conf |
| 387 |
|
| 388 |
- name: create AD principal for Linux keytabs |
| 389 |
win_domain_user: |
| 390 |
name: '{{ inventory_hostname }}_{{ item }}' |
| 391 |
description: Kerberos principal for {{ inventory_hostname }} {{ item }} keytab |
| 392 |
password: '{{ domain_password }}' |
| 393 |
password_never_expires: yes |
| 394 |
update_password: on_create |
| 395 |
attributes: |
| 396 |
msDS-SupportedEncryptionTypes: 16 # AES256_CTS_HMAC_SHA1_96 |
| 397 |
state: present |
| 398 |
become: no |
| 399 |
delegate_to: DC01 |
| 400 |
with_items: |
| 401 |
- HTTP |
| 402 |
- cifs |
| 403 |
|
| 404 |
- name: create keytab for Linux hosts |
| 405 |
win_command: >- |
| 406 |
ktpass.exe |
| 407 |
-out C:\temp\{{ inventory_hostname }}-{{ item }}.keytab |
| 408 |
-princ {{ item }}/{{ inventory_hostname }}.{{ domain_name }}@{{ domain_name | upper }} |
| 409 |
-mapUser {{ inventory_hostname }}_{{ item }}@{{ domain_name | upper }} |
| 410 |
+rndpass |
| 411 |
-mapOp set |
| 412 |
-crypto AES256-SHA1 |
| 413 |
-ptype KRB5_NT_PRINCIPAL |
| 414 |
args: |
| 415 |
creates: C:\temp\{{ inventory_hostname }}-{{ item }}.keytab |
| 416 |
become: no |
| 417 |
delegate_to: DC01 |
| 418 |
with_items: |
| 419 |
- HTTP |
| 420 |
- cifs |
| 421 |
|
| 422 |
- name: fetch the keytab |
| 423 |
fetch: |
| 424 |
src: C:\temp\{{ inventory_hostname }}-{{ item }}.keytab |
| 425 |
dest: '{{ inventory_hostname }}-{{ item }}.keytab' |
| 426 |
flat: yes |
| 427 |
become: no |
| 428 |
delegate_to: DC01 |
| 429 |
with_items: |
| 430 |
- HTTP |
| 431 |
- cifs |
| 432 |
|
| 433 |
- name: copy keytabs to host |
| 434 |
copy: |
| 435 |
src: '{{ inventory_hostname }}-{{ item }}.keytab' |
| 436 |
dest: /etc/{{ item }}.keytab |
| 437 |
with_items: |
| 438 |
- HTTP |
| 439 |
- cifs |
| 440 |
|
| 441 |
- name: create user keytab - MIT |
| 442 |
command: ktutil |
| 443 |
args: |
| 444 |
chdir: ~/ |
| 445 |
creates: ~/user.keytab |
| 446 |
stdin: "addent -password -p {{ domain_upn }} -k 1 -e aes256-cts\n{{ domain_password }}\nwrite_kt user.keytab" |
| 447 |
become: no |
| 448 |
when: krb_provider == 'MIT' |
| 449 |
|
| 450 |
- name: create user keytab - Heimdal |
| 451 |
command: >- |
| 452 |
ktutil |
| 453 |
--keytab=user.keytab |
| 454 |
add |
| 455 |
--principal={{ domain_upn }} |
| 456 |
--kvno=1 |
| 457 |
--enctype=aes256-cts |
| 458 |
--password={{ domain_password }} |
| 459 |
args: |
| 460 |
chdir: ~/ |
| 461 |
creates: ~/user.keytab |
| 462 |
become: no |
| 463 |
when: krb_provider == 'Heimdal' |
| 464 |
|
| 465 |
- name: copy across CA cert |
| 466 |
copy: |
| 467 |
src: cert_setup/ca.pem |
| 468 |
dest: /etc/pki/ca-trust/source/anchors/pyspnego.pem |
| 469 |
register: ca_cert_copy |
| 470 |
|
| 471 |
- name: register CA cert |
| 472 |
command: update-ca-trust |
| 473 |
when: ca_cert_copy is changed |
| 474 |
|
| 475 |
- name: ensure wheel dir exists |
| 476 |
file: |
| 477 |
path: ~/wheels |
| 478 |
state: directory |
| 479 |
become: no |
| 480 |
|
| 481 |
- name: extract wheel artifacts |
| 482 |
unarchive: |
| 483 |
src: artifact.zip |
| 484 |
dest: ~/wheels |
| 485 |
become: no |
| 486 |
|
| 487 |
- name: get pyspnego artifact sdist filename |
| 488 |
find: |
| 489 |
paths: ~/wheels |
| 490 |
patterns: 'pyspnego-*.tar.gz' |
| 491 |
recurse: no |
| 492 |
file_type: file |
| 493 |
become: no |
| 494 |
register: spnego_sdist_file |
| 495 |
|
| 496 |
- name: verify sdist was found |
| 497 |
assert: |
| 498 |
that: |
| 499 |
- spnego_sdist_file.files | count == 1 |
| 500 |
|
| 501 |
- name: get pyspnego artifact version |
| 502 |
set_fact: |
| 503 |
spnego_version: >- |
| 504 |
{{ spnego_sdist_file.files[0].path | basename | regex_replace('pyspnego-(?P<version>.*)\.tar\.gz', '\g<version>') }} |
| 505 |
|
| 506 |
- name: create a virtualenv for each Python interpeter |
| 507 |
pip: |
| 508 |
name: |
| 509 |
- pytest |
| 510 |
- pytest-forked |
| 511 |
- requests |
| 512 |
- https://github.com/jborean93/sansldap/archive/174408ab40e42f9a2d34bc493027e43cc5d31715.zip |
| 513 |
- pyspnego[kerberos] == {{ spnego_version }} |
| 514 |
virtualenv: '{{ python_venv_path }}/{{ item | basename }}' |
| 515 |
virtualenv_python: '{{ item }}' |
| 516 |
extra_args: --find-links file:///{{ spnego_sdist_file.files[0].path | dirname }} |
| 517 |
become: no |
| 518 |
with_items: '{{ python_interpreters }}' |
| 519 |
|
| 520 |
- name: template out test integration file |
| 521 |
template: |
| 522 |
src: test_integration.py.tmpl |
| 523 |
dest: ~/test_integration.py |
| 524 |
block_start_string: '{!!' |
| 525 |
block_end_string: '!!}' |
| 526 |
tags: |
| 527 |
- template |
| 528 |
become: no |