Re: [ansible-project] How to create an unprivileged user and intialize its GPG config?

2017-02-11 Thread Kai Stian Olstad
On 10. feb. 2017 10:14, Gabriel Birke wrote: I've read the ways to resolve this, but I'm still struggling: - `setfacl` is available on the machine (in /usr/bin) and I'm using Ansible 2.2, so theoretically my playbook should work. Is there any way to check why it fails? One thing is to have

Re: [ansible-project] How to create an unprivileged user and intialize its GPG config?

2017-02-09 Thread Johannes Kastl
On 09.02.17 18:07 Gabriel Birke wrote: > - name: Import public key > shell: gpg --import /home/{{ backup_user}}/some_public_key.asc > chdir: /home/{{ backup_user}}/ > become: yes > become_user: "{{ backup_user }}" Instead of becoming this user, can you already log in as this user at this

[ansible-project] How to create an unprivileged user and intialize its GPG config?

2017-02-09 Thread Gabriel Birke
I'd like to create a user and import a GPG key into its GPG keychain. I thought the easiest way to do this would be to impersonate him, so the configuration and key files created by the gpg tool have the right onwership and permissions. My playbook steps look like this: - name: Create backup