Ниже вы найдете задачу «Запустить Playbook»:
Ниже приведены ошибки:
Однако синтаксических проблем нет, уверяю вас в этом.Запустил проверку синтаксиса на моей CentOS VM (CentOS 7.6)
ansible-playbook -i azure_rm.py ../playbooks/common.yml --syntax-check
[ERROR]: /usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.24.1) or chardet (2.2.1) doesn't match a supported version!
RequestsDependencyWarning) No handlers could be found for logger "msrestazure.azure_active_directory"
playbook: ../playbooks/common.yml
Содержание в common.yml ниже :
- name: Execute common operations across all Windows servers
hosts: all
gather_facts: yes
tasks:
- name: Set timezone to A.U.S. Eastern Time (DST)
win_timezone:
timezone: AUS Eastern Standard Time
- name: Set the region format to English Australia and copy settings to new profiles
win_region:
location: 12
format: en-AU
copy_settings: True
unicode_language: en-AU
register: result
- win_reboot:
when: result.restart_required
- name: Create directory structure
win_file:
path: C:\Temp\
state: directory
# - win_copy:
# src: /data/OnlyOnMyPC/ansible/scripts/
# dest: 'C:\temp\'
# remote_src: no
# force: yes