-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible.yml
50 lines (50 loc) · 1.21 KB
/
ansible.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
#
#Linux targets
#
- hosts: Linux
gather_facts: false
become: False
vars:
ansible_user: "{{ provision_username }}"
skip_check: False
tasks:
- name: Check Linux ansible connectivity
ignore_unreachable: True
ping:
data: "OK, Ansible ready!"
register: check_ansible
tags: check
when: skip_check|d(false) != True
- name: Loading ansible provisioning role
include_role:
name: ansible_provisioning
tags: provision,check
vars:
ansible_user: "{{ raw_host_username }}"
ansible_ssh_pass: "{{ raw_host_password }}"
ansible_become_pass: "{{ ansible_ssh_pass }}"
ansible_become: True
force_provisioning: False
#
#Win32NT targets
#
- hosts: Windows
gather_facts: false
become: False
vars:
skip_check: True
tasks:
- name: Check Windows ansible connectivity
ignore_unreachable: True
win_ping:
data: "OK, Ansible ready!"
register: check_ansible
tags: check
when: skip_check|d(false) != True
- name: Loading ansible provisioning role
include_role:
name: ansible_provisioning
tags: provision,check
vars:
force_provisioning: False