Merge "Ansible 2.x - Address deprecation warning of bare variables"
This commit is contained in:
commit
d7d6cb1794
@ -16,6 +16,9 @@
|
||||
## APT Cache Options
|
||||
cache_timeout: 600
|
||||
|
||||
rsyslog_client_apt_repos: []
|
||||
|
||||
# Example override to specify which repo the packages should come from
|
||||
# rsyslog_client_apt_repos:
|
||||
# - { repo: "ppa:adiscon/v8-stable", state: "present" }
|
||||
|
||||
|
@ -17,8 +17,7 @@
|
||||
apt_repository:
|
||||
repo: "{{ item.repo }}"
|
||||
state: "{{ item.state }}"
|
||||
with_items: rsyslog_client_apt_repos
|
||||
when: rsyslog_client_apt_repos is defined
|
||||
with_items: "{{ rsyslog_client_apt_repos }}"
|
||||
register: add_repos
|
||||
until: add_repos|success
|
||||
retries: 5
|
||||
@ -53,6 +52,6 @@
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: rsyslog_client_apt_packages
|
||||
with_items: "{{ rsyslog_client_apt_packages }}"
|
||||
tags:
|
||||
- rsyslog-client-apt-packages
|
||||
|
Loading…
Reference in New Issue
Block a user