Skip to content

Commit

Permalink
changing file destination to sandbox site from localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieKarasic committed Oct 25, 2024
1 parent 4a1f242 commit b17ddae
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions playbooks/utils/veeam_backup_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,20 @@
copy:
dest: "/tmp/tags_report.csv"
content: "Tag\n"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Append tags to CSV
lineinfile:
path: "/tmp/tags_report.csv"
line: "{{ item }}"
loop: "{{ unique_tags }}"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Append report date and time to tags CSV
lineinfile:
path: "/tmp/tags_report.csv"
line: "Report Date/Time {{ lookup('pipe', \"date '+%m.%d.%Y %H:%M'\") }}"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Find VMs without tags
ansible.builtin.set_fact:
Expand All @@ -89,20 +89,20 @@
copy:
dest: "/tmp/untagged_vms_report.csv"
content: "VM Name\n"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Append untagged VMs to CSV
lineinfile:
path: "/tmp/untagged_vms_report.csv"
line: "{{ item }}"
loop: "{{ untagged_vms }}"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Append report date and time to untagged VMs CSV
lineinfile:
path: "/tmp/untagged_vms_report.csv"
line: "Report Date/Time {{ lookup('pipe', \"date '+%m.%d.%Y %H:%M'\") }}"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Find VMs with tags
ansible.builtin.set_fact:
Expand All @@ -118,17 +118,17 @@
copy:
dest: "/tmp/tagged_vms_report.csv"
content: "VM Name,Tag Name,Disk Size\n"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Append tagged VMs to CSV
lineinfile:
path: "/tmp/tagged_vms_report.csv"
line: "{{ item.VM_name }},{{ item.Tag_name }},{{ item.Disk_size }}"
loop: "{{ slim_tagged_vms }}"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

- name: Append report date and time to tagged VMs CSV
lineinfile:
path: "/tmp/tagged_vms_report.csv"
line: "Report Date/Time {{ lookup('pipe', \"date '+%m.%d.%Y %H:%M'\") }}"
delegate_to: localhost
delegate_to: sandbox-acozine.lib.princeton.edu

0 comments on commit b17ddae

Please sign in to comment.