Fix ansible_user not set.

This commit is contained in:
yohan 2024-06-18 13:09:24 +02:00
parent 7109f7ea58
commit 3d66a607a0

View File

@ -9,6 +9,12 @@
tags:
- always
- name: Set ansible_user
set_fact:
ansible_user: "{{ ansible_user_id }}"
tags:
- always
- name: Retrieve secrets
ansible.builtin.include_tasks:
file: "tasks/retrieve_secret_vars.yml"
@ -65,6 +71,13 @@
- common
- always
- name: Set ansible_user
set_fact:
ansible_user: "{{ ansible_user_id }}"
tags:
- common
- always
- name: Include retrieve_secret_vars tasks
ansible.builtin.include_tasks:
file: "tasks/retrieve_secret_vars.yml"
@ -114,7 +127,7 @@
- name: set remote workdir path
ansible.builtin.set_fact:
remote_workdir: /home/{{ ansible_user }}/.tmp_deploy_ovh
remote_workdir: "/home/{{ ansible_user }}/.tmp_deploy_ovh"
tags:
- common
- always