mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
- name: delete temporary directory
|
||||
include_tasks: default-cleanup.yml
|
||||
|
||||
- name: delete temporary directory (windows)
|
||||
include_tasks: windows-cleanup.yml
|
|
@ -0,0 +1,5 @@
|
|||
- name: delete temporary directory
|
||||
file:
|
||||
path: "{{ remote_tmp_dir }}"
|
||||
state: absent
|
||||
no_log: yes
|
|
@ -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 }}"
|
|
@ -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"
|
|
@ -0,0 +1,4 @@
|
|||
- name: delete temporary directory (windows)
|
||||
ansible.windows.win_file:
|
||||
path: '{{ remote_tmp_dir }}'
|
||||
state: absent
|
|
@ -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 }}'
|
Loading…
Add table
Add a link
Reference in a new issue