aboutsummaryrefslogtreecommitdiff
path: root/tasks/common.yml
blob: 6e8ed550a08fac6a7ac799a4a6ac59e697fedf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Ensure borg is installed
  package:
    name: "{{ borg.package_name }}"

- name: Push borg gathering fact on client
  copy:
    src: borg.fact
    dest: /etc/ansible/facts.d/
    mode: 0500
    owner: root
  register: borg_gathering_fact

- name: reload ansible_local
  setup: filter=ansible_local
  when: borg_gathering_fact.changed
...