I can encrypt and decrypt but i haven't been able to get edit to work.

I'm running on a mac.  In my bash_profile i have aliases to sublime


---------- .bash_profile --------------

alias edit='/Applications/Sublime\ Text\
2.app/Contents/SharedSupport/bin/subl'

# a sudo version for when you need to edit /opt/<file> or other sudo owned
files

alias sedit='sudo /Applications/Sublime\ Text\
2.app/Contents/SharedSupport/bin/subl'

# define EDITOR or ansible-vault


# Tried several things

export EDITOR=edit  # Command not found

alias EDITOR=edit  #  Permission denied

alias EDITO=sedit


---------- end  .bash_profile --------------

*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** +
(develop)]*ansible-vault encrypt sudoers

Vault password:

Confirm Vault password:

Encryption successful

*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** +
(develop)]*ansible-vault decrypt sudoers

Vault password:

Decryption successful


*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** +
(develop)]*ansible-vault edit -d sudoers

Vault password:

Traceback (most recent call last):

  File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-vault", line
182, in main

    fn(args, options, parser)

  File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-vault", line
141, in execute_edit

    this_editor.edit_file()

  File
"/Users/kbroughton/vcp/git/mentat/ansible/lib/ansible/utils/vault.py", line
188, in edit_file

    call([EDITOR, tmp_path])

  File
"/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 522, in call

    return Popen(*popenargs, **kwargs).wait()

  File
"/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 709, in __init__

    errread, errwrite)

  File
"/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 1326, in _execute_child

    raise child_exception

OSError: [Errno 13] Permission denied


ERROR: [Errno 13] Permission denied

*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** +
(develop)]*alias EDITOR=sedit

*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** +
(develop)]*ansible-vault edit -d sudoers

Vault password:

Traceback (most recent call last):

  File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-vault", line
182, in main

    fn(args, options, parser)

  File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-vault", line
141, in execute_edit

    this_editor.edit_file()

  File
"/Users/kbroughton/vcp/git/mentat/ansible/lib/ansible/utils/vault.py", line
188, in edit_file

    call([EDITOR, tmp_path])

  File
"/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 522, in call

    return Popen(*popenargs, **kwargs).wait()

  File
"/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 709, in __init__

    errread, errwrite)

  File
"/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 1326, in _execute_child

    raise child_exception

OSError: [Errno 13] Permission denied


ERROR: [Errno 13] Permission denied


*Also tried as sudo user*

*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** +
(develop)]*sudo ansible-vault edit -d sudoers

Traceback (most recent call last):

  File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-vault", line
27, in <module>

    from ansible import utils

ImportError: No module named ansible

*[**kbroughton@mb-kbroughton*:*lynx-ansible/dev-ansible** + (develop)]* ansible
--version

ansible 1.5 (devel 312cda0d7c) last updated 2014/02/25 17:27:18 (GMT -500)



On Thu, Feb 27, 2014 at 10:41 AM, <ansible-project@googlegroups.com> wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/ansible-project/topics
>
>    - YUM: Much slower in ansible than on the 
> cli<#1447438c0fcc5ab2_group_thread_0>[2 Updates]
>    - deploying jars <#1447438c0fcc5ab2_group_thread_1> [2 Updates]
>    - Ansible fails with "Authentication or permission failure" due to
>    "Too many links" in 
> $HOME/.ansible/tmp/<#1447438c0fcc5ab2_group_thread_2>[5 Updates]
>    - Ansible Galaxy roles - distro - arch 
> 64<#1447438c0fcc5ab2_group_thread_3>[2 Updates]
>    - Ansible XenServer VM Playbook & Guide 
> Posted<#1447438c0fcc5ab2_group_thread_4>[1 Update]
>    - Variable precedence: inventory versus 
> host_vars<#1447438c0fcc5ab2_group_thread_5>[1 Update]
>    - SSH users via ansible <#1447438c0fcc5ab2_group_thread_6> [1 Update]
>    - Why no variable substitution in top level 
> includes?<#1447438c0fcc5ab2_group_thread_7>[1 Update]
>
>   YUM: Much slower in ansible than on the 
> cli<http://groups.google.com/group/ansible-project/t/a40f1c2bf799b408>
>
>    Marc Trudel <mtru...@wizcorp.jp> Feb 26 08:49PM -0800
>
>    Some feedback
>
>    I tried a few things still to make it perform better, including mirror
>    repositories, but the fact that repoquery is forced on the user is
>    perhaps
>    limiting... any ways to make that 
> ...more<http://groups.google.com/group/ansible-project/msg/aca80a42eaefa09>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    Michael DeHaan <mich...@ansible.com> Feb 27 08:15AM -0500
>
>    We've been through this discussion a bit before, and we believe the
>    repoquery needs to be there.
>
>    I'm a bit more curious about why you are spending so much time in the
>    operation and most people 
> ...more<http://groups.google.com/group/ansible-project/msg/a3148914ebce91f7>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   deploying 
> jars<http://groups.google.com/group/ansible-project/t/ed9bc3f4223bd0a4>
>
>    Mark Butler <markhenrybut...@gmail.com> Feb 26 06:05PM -0800
>
>    Hi team,
>
>    i need to download and deploy some jars using Ansible from Jenkins.
>    Some of
>    our jars with dependencies are large (150mb) so this is slow.
>
>    Is there anyway i can check if and only 
> ...more<http://groups.google.com/group/ansible-project/msg/52daccadb4a4f6ad>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    Adam Morris <zwack...@gmail.com> Feb 26 08:06PM -0800
>
>    On Wednesday, February 26, 2014 6:05:26 PM UTC-8, Mark Butler wrote:
>
>    > i need to download and deploy some jars using Ansible from Jenkins.
>    Some
>    > of our jars with dependencies are large (150mb) 
> ...more<http://groups.google.com/group/ansible-project/msg/34912ca9265aeb84>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   Ansible fails with "Authentication or permission failure" due to "Too
> many links" in 
> $HOME/.ansible/tmp/<http://groups.google.com/group/ansible-project/t/a28857311473571d>
>
>    i iordanov <iiorda...@gmail.com> Feb 26 04:36PM -0800
>
>    Here is a sample failure message:
>
>    fatal: [u05] => Authentication or permission failure. In some cases,
>    you
>    may have been able to authenticate and did not have permissions on t
>    ...more<http://groups.google.com/group/ansible-project/msg/fa5958e1f815b5e>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    i iordanov <iiorda...@gmail.com> Feb 26 04:48PM -0800
>
>    For the record, I'm using Ansible 1.4.5 built with "make deb" after a
>    "git
>    checkout v1.4.5" in the repository.
>    
> ...more<http://groups.google.com/group/ansible-project/msg/4e12acb8f64c157d>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    Michael DeHaan <mich...@ansible.com> Feb 26 07:49PM -0500
>
>    Was just going to ask what version and you beat me to it :)
>
>    There was a problem with the copy module not removing tempfiles that
>    was
>    recently fixed (Feb 4), though we haven't included this in a 
> ...more<http://groups.google.com/group/ansible-project/msg/66df663306bceeb0>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    i iordanov <iiorda...@gmail.com> Feb 26 04:54PM -0800
>
>    Hi Michael,
>
>    On Wednesday, February 26, 2014 7:49:04 PM UTC-5, Michael DeHaan wrote:
>
>    > Was just going to ask what version and you beat me to it :)
>
>    :)
>
>
>    > Ansible 1.5 is slated to be 
> ...more<http://groups.google.com/group/ansible-project/msg/4a7c4d9a46618f7c>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    Michael DeHaan <mich...@ansible.com> Feb 26 07:58PM -0500
>
>    Basically the "async" keyword in Ansible for very long running stuff.
>
>    http://docs.ansible.com/playbooks_async.html
>
>    The devel branch is pretty darn stable now if you want to try running
>    an 
> ...more<http://groups.google.com/group/ansible-project/msg/1fea49f94af011d1>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   Ansible Galaxy roles - distro - arch 
> 64<http://groups.google.com/group/ansible-project/t/df3f43a6d6392722>
>
>    Paul Durivage <paulduriv...@gmail.com> Feb 26 10:59AM -0600
>
>    If you so choose, you could add a task to the role to ensure the
>    system is
>    a 64-bit system.
>
>    - name: "Ensure system is x86_64"
>    fail: msg="Docker requires a 64bit system architecture" 
> ...more<http://groups.google.com/group/ansible-project/msg/eede35a9897b1f89>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>
>    bryan hunt <picsolvebr...@gmail.com> Feb 26 11:40PM
>
>    Yeah Paul, I like. I'll add it now. Good suggestion. Thanks, Bryan
>
>    
> ...more<http://groups.google.com/group/ansible-project/msg/3b99523c99275819>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   Ansible XenServer VM Playbook & Guide 
> Posted<http://groups.google.com/group/ansible-project/t/d8cd21579688f0f>
>
>    Pavel Sakun <pavelsa...@gmail.com> Feb 26 08:00AM -0800
>
>    Hi Aaron.
>
>    The link above gives 404, corrent one is
>    http://sharknet.us/2013/12/13/276/
>
>    Pavel.
>
>    On Wednesday, December 25, 2013 1:24:43 AM UTC+3, Aaron Hunter wrote:
>    
> ...more<http://groups.google.com/group/ansible-project/msg/6144d3bfc6fa9a27>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   Variable precedence: inventory versus 
> host_vars<http://groups.google.com/group/ansible-project/t/ef248616979da791>
>
>    Jeremy Schulman <nwkautoman...@gmail.com> Feb 26 09:21AM -0800
>
>    Hi,
>
>    I ran across this same "not issue" thinking that my host_vars/x.yml
>    would
>    override the inventory file. I get the Ansible Zen approach, and now
>    that
>    I know the answer from MD above, I am 
> ...more<http://groups.google.com/group/ansible-project/msg/b366ce2d91a92def>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   SSH users via 
> ansible<http://groups.google.com/group/ansible-project/t/1a423775a1efabf4>
>
>    Petr Sukharev <st.ing...@gmail.com> Feb 26 09:11AM -0800
>
>    Solved by myself.
>
>    Use trick with
>
>    shell={{ variable | default('/bin/sh') }} value.
>
>    Thanks a lot for help!
>    
> ...more<http://groups.google.com/group/ansible-project/msg/6dc737006345fbf7>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>   Why no variable substitution in top level 
> includes?<http://groups.google.com/group/ansible-project/t/59dbe8b806770543>
>
>    anatoly techtonik <techto...@gmail.com> Feb 26 07:49PM +0300
>
>    I still don't understand. There are different levels of variables, but
>    how do they stacked and overriden?
>
>    Is it like this? (I can't check right now)
>
>    [globals] (-e) - 
> ...more<http://groups.google.com/group/ansible-project/msg/f9dbf2480b9efb44>
>
>    Back to top <#1447438c0fcc5ab2_digest_top>
>
>  --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/047d7b8747c498715904f365fd9f%40google.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 

Kesten Broughton
512 701 4209

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAO2fFsWO-6gk4VEX3ykLArPgSEF_0j%3D%2BJv%3DE-q0Ke4-csY_vPg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to