Skip to content

Commit 98693c4

Browse files
committed
Fix ansible_user_dir
1 parent 29c2b25 commit 98693c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Create callback plugins directory
33
file:
4-
path: "{{ ansible_user_dir }}/.ansible/plugins/callback"
4+
path: "{{ ansible_user_dir | default(ansible_env.HOME + '/.ansible') }}/plugins/callback"
55
state: directory
66
mode: '0755'
77
delegate_to: localhost
@@ -10,7 +10,7 @@
1010
- name: Install prettify callback plugin
1111
copy:
1212
src: prettify.py
13-
dest: "{{ ansible_user_dir }}/.ansible/plugins/callback/prettify.py"
13+
dest: "{{ ansible_user_dir | default(ansible_env.HOME + '/.ansible') }}/plugins/callback/prettify.py"
1414
mode: '0644'
1515
delegate_to: localhost
1616
run_once: true

0 commit comments

Comments
 (0)