Initial commit

This commit is contained in:
Ansible Core Team 2020-03-09 09:11:07 +00:00
commit aebc1b03fd
4861 changed files with 812621 additions and 0 deletions

View file

@ -0,0 +1,5 @@
- name: delete temporary directory
include_tasks: default-cleanup.yml
- name: delete temporary directory (windows)
include_tasks: windows-cleanup.yml

View file

@ -0,0 +1,5 @@
- name: delete temporary directory
file:
path: "{{ remote_tmp_dir }}"
state: absent
no_log: yes

View file

@ -0,0 +1,11 @@
- name: create temporary directory
tempfile:
state: directory
suffix: .test
register: remote_tmp_dir
notify:
- delete temporary directory
- name: record temporary directory
set_fact:
remote_tmp_dir: "{{ remote_tmp_dir.path }}"

View file

@ -0,0 +1,10 @@
- name: make sure we have the ansible_os_family and ansible_distribution_version facts
setup:
gather_subset: distribution
when: ansible_facts == {}
- include_tasks: "{{ lookup('first_found', files)}}"
vars:
files:
- "{{ ansible_os_family | lower }}.yml"
- "default.yml"

View file

@ -0,0 +1,4 @@
- name: delete temporary directory (windows)
ansible.windows.win_file:
path: '{{ remote_tmp_dir }}'
state: absent

View file

@ -0,0 +1,10 @@
- name: create temporary directory
register: remote_tmp_dir
notify:
- delete temporary directory (windows)
ansible.windows.win_tempfile:
state: directory
suffix: .test
- name: record temporary directory
set_fact:
remote_tmp_dir: '{{ remote_tmp_dir.path }}'