Skip to content

Commit

Permalink
Remove stderr from yum history command. Closes #118.
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Oct 23, 2017
1 parent 3e7d166 commit 7f2a90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/date/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
when: 'internal_have_tune2fs'

- name: gather date.yum_history fact
raw: yum history | tail -n 4 | grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}'
raw: yum history 2>/dev/null | tail -n 2 | grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}'
register: internal_date_yum_history_cmd
become: yes
ignore_errors: yes
Expand Down

0 comments on commit 7f2a90e

Please sign in to comment.