Set permissions for bin and .gnupg
This commit is contained in:
parent
683366b7a4
commit
532eb20d07
@ -4,7 +4,7 @@
|
|||||||
file:
|
file:
|
||||||
path: "/home/{{ account.name }}/bin"
|
path: "/home/{{ account.name }}/bin"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0777"
|
mode: "0744"
|
||||||
|
|
||||||
- name: download script
|
- name: download script
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
@ -25,6 +25,13 @@
|
|||||||
name: gpg-agent
|
name: gpg-agent
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: ensure user/.gnupg exists
|
||||||
|
become_user: "{{ account.name }}"
|
||||||
|
file:
|
||||||
|
path: "/home/{{ account.name }}/.gnupg"
|
||||||
|
state: directory
|
||||||
|
mode: "0700"
|
||||||
|
|
||||||
- name: enable script in gpg-agent
|
- name: enable script in gpg-agent
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Reference in New Issue
Block a user