Skip to content

Commit

Permalink
only create config if new user
Browse files Browse the repository at this point in the history
  • Loading branch information
wzzrd committed Feb 24, 2024
1 parent 8915975 commit 00174c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/atuin_client/tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
state: directory
mode: "0750"

- name: Configure atuin client
- name: Configure atuin client if needed
ansible.builtin.template:
dest: "{{ ansible_facts.getent_passwd[item][4] }}/.config/atuin/config.toml"
src: config.toml.j2
owner: "{{ item }}"
mode: "0640"
force: false

0 comments on commit 00174c7

Please sign in to comment.