[TIDY] Move to ansible_facts dict instead of injected variables
This commit is contained in:
parent
d1c6d34a64
commit
1c734cefb1
15 changed files with 39 additions and 39 deletions
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- name: Borgbackup - Add debian repo key
|
||||
when:
|
||||
- ansible_distribution_release == 'stretch'
|
||||
- ansible_facts['distribution_release'] == 'stretch'
|
||||
become: true
|
||||
ansible.builtin.apt_key:
|
||||
keyserver: pgpkeys.mit.edu
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
state: present
|
||||
- name: Borgbackup - Add stretch-backports
|
||||
when:
|
||||
- ansible_distribution_release == 'stretch'
|
||||
- ansible_facts['distribution_release'] == 'stretch'
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb http://ftp.debian.org/debian stretch-backports main
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
- borgbackup_passphrase is defined
|
||||
- borgbackup_repo is defined
|
||||
- borgbackup_hostname is defined
|
||||
- ansible_distribution_release == 'stretch'
|
||||
- ansible_facts['distribution_release'] == 'stretch'
|
||||
become: true
|
||||
ansible.builtin.apt:
|
||||
name: borgbackup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue