Skip to content

Commit

Permalink
Suppress stderr for anaconda-ks.cfg command
Browse files Browse the repository at this point in the history
This will cause the date to be None.  Facts with None are not included.
  • Loading branch information
kholdaway committed Nov 28, 2017
1 parent a8f1c4f commit 2ab0131
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 @@ -6,7 +6,7 @@
ignore_errors: yes

- name: gather date.anaconda_log fact
raw: ls --full-time /root/anaconda-ks.cfg | grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}'
raw: ls --full-time /root/anaconda-ks.cfg 2>/dev/null | grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}'
register: internal_date_anaconda_log_cmd
become: yes
ignore_errors: yes
Expand Down

0 comments on commit 2ab0131

Please sign in to comment.