Hey guys, 

After reading the file <http://docs.ansible.com/ansible/file_module.html> 
documentation a few times, doing some testing and doing some preliminary 
searching here I hopefully have a quick question for you.

I'm working on automating my personal dev environment 
<https://github.com/christopherdwhite/superlumic-config> with Superlumic 
<https://github.com/superlumic/superlumic> and have moved a lot of my 
~/Library/ application data to Dropbox and am symlinking them back into 
place.

Since I'm creating symlinks for applications that haven't been run yet (or 
even installed in the case of Mac App Store apps) so their parent 
directories may not already exist.

It looks like I could do this as two separate tasks with a directory state 
as well as a link state but I was hoping there might be a way to do them 
both in a single task to keep my configuration as simple and clean as 
possible. 

Is it possible to do this in one task?

    - name: TextExpaner Settings Directory
      file: path=/Users/cwhite/Library/Application\ Support/TextExpander/ 
state=directory

    - name: TextExpaner Settings Symlink
      file: src=/Users/cwhite/Dropbox/TextExpander/Settings.textexpander 
dest=/Users/cwhite/Library/Application\ 
Support/TextExpander/Settings.textexpander 
state=link force=yes

Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9e635fbb-13d6-49b8-a89e-fc289cffc22f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to