fedora-upgrade - minor fix, shell warn=false

This commit is contained in:
Josh Lay 2019-10-02 23:42:09 -05:00
parent 067b8b1d73
commit 4ecee1caca
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
---
- include_tasks: tasks.yml
when: (ansible_distribution in ["Fedora"] and not is_atomic) and (ansible_distribution_version != fedora_target and ansible_distribution_version >= fedora_minimum)
when: (ansible_distribution in ["Fedora"] and not is_atomic) and (ansible_distribution_version != fedora_target and ansible_distribution_version|int >= fedora_minimum)

View file

@ -6,7 +6,8 @@
state: present
- name: stage upgraded packages for fedora {{ fedora_target }}
shell: dnf -y system-upgrade download --releasever="{{ fedora_target }}"
shell: "dnf -y system-upgrade download --releasever={{ fedora_target }}"
args:
warn: false
register: dnf_result
changed_when: "'Download complete' in dnf_result.stdout"