๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
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.
ansible-playbooks/roles/ansible/tasks/main.yml

32 lines
532 B

2 years ago
- 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 }}"