[ansible-project] Re: How to mount partition when NTFS only

2017-07-27 Thread Gilberto Valentin
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

[ansible-project] Re: How to mount partition when NTFS only

2017-08-01 Thread Gilberto Valentin
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

[ansible-project] Re: How to mount partition when NTFS only

2017-08-01 Thread Gilberto Valentin
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

Re: [ansible-project] Re: How to mount partition when NTFS only

2017-07-27 Thread Kai Stian Olstad
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

Re: [ansible-project] Re: How to mount partition when NTFS only

2017-07-31 Thread Gilberto Valentin
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

Re: [ansible-project] Re: How to mount partition when NTFS only

2017-07-31 Thread Kai Stian Olstad
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

Re: [ansible-project] Re: How to mount partition when NTFS only

2017-07-31 Thread Gilberto Valentin
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