Any suggestions? :)
On Tuesday, July 25, 2017 at 8:42:25 AM UTC-4, Gilberto Valentin wrote:
>
> Hello,
>
> I have a playbook that scans for hard drives and mounts them in order to
> do a backup of the data from those drives. I am able to scan for the drives
> just fine and I can also mount them
I got a bit further. I was able to add the following:
tasks:
- name: Install jmespath via pip if missing
pip:
name: jmespath
- name: check for hard drive devices
setup:
filter: ansible_devices
tags:
- test
- name: get device info
parted
I was able to resolve this by redoing all of my tasks as follows:
tasks:
- name: Install jmespath via pip if missing
pip:
name: jmespath
- name: run the setup module for some facts about the hardware
setup:
filter: ansible_devices
tags:
- new
On 27. juli 2017 18:10, Gilberto Valentin wrote:
Any suggestions? :)
You should check your with_items: under "Check for hard drive devices"
it's in practice empty.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To u
Kai,
Thanks for the response. Can you elaborate on what you by "it's in practice
empty"? From what I can tell, I am parted to then pull the key values for a
list of drives. This doesn't fully work based on what I am trying to do. In
essence, I am looking for help to accomplish what I want and t
On 01. aug. 2017 01:26, Gilberto Valentin wrote:
On Thursday, July 27, 2017 at 1:00:14 PM UTC-4, Kai Stian Olstad wrote:
On 27. juli 2017 18:10, Gilberto Valentin wrote:
Any suggestions? :)
You should check your with_items: under "Check for hard drive devices"
it's in practice empty.
Thank
Yep, I get that...my point is I don't know how to pull the *NTFS *partition
info from the filter. It seems like a nested key pair value and I don't
know how to extract it for comparison
On Monday, July 31, 2017 at 8:09:31 PM UTC-4, Kai Stian Olstad wrote:
>
> On 01. aug. 2017 01:26, Gilberto Val