Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Cannot access /etc/machine-id on target system #422

Open
chambridge opened this issue Oct 27, 2017 · 0 comments
Open

Cannot access /etc/machine-id on target system #422

chambridge opened this issue Oct 27, 2017 · 0 comments

Comments

@chambridge
Copy link

Specify type:

  • Bug

Bug severity (if applicable):

  • Low

Description:

Encounter the following error when running this ansible task.

- name: gather date.machine_id fact
  raw: ls --full-time /etc/machine-id | grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}'
  register: date_machine_id
  ignore_errors: yes
  when: '"date.machine_id" in facts_to_collect'

Output:
ls: cannot access /etc/machine-id: No such file or directory

Probably need to pipe stderr


Bug Report

Version of rho:

[ 0.28, 0.29 ]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant