You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
532 B
31 lines
532 B
- name: install ansible and dependencies
|
|
include_tasks: tasks/install_packages.yml
|
|
vars:
|
|
package:
|
|
- ansible
|
|
- py3-lxml
|
|
- py3-pip
|
|
- py3-requests
|
|
- py3-netaddr
|
|
|
|
|
|
- name: install python dependencies
|
|
pip:
|
|
name:
|
|
- pywinrm
|
|
- pywinrm[credssp]
|
|
|
|
|
|
- name: create ansible directory
|
|
file:
|
|
path: "{{ ansible_dir }}"
|
|
state: directory
|
|
|
|
|
|
- name: add directories to backup plan
|
|
include_role:
|
|
name: backup
|
|
vars:
|
|
function: add
|
|
backup_items:
|
|
- "{{ ansible_dir }}"
|
|
|