[test last]
This commit is contained in:
16
backup.yml
16
backup.yml
@@ -67,13 +67,13 @@
|
|||||||
register: bw_session_result
|
register: bw_session_result
|
||||||
|
|
||||||
|
|
||||||
- name: Return all secrets from a path
|
# - name: Return all secrets from a path
|
||||||
ansible.builtin.debug: "{{ bw_session_result.results[-1].stdout }}"
|
# ansible.builtin.debug: "{{ bw_session_result.results[-1].stdout }}"
|
||||||
|
|
||||||
- name: Set BW_SESSION as environment variable globally
|
# - name: Set BW_SESSION as environment variable globally
|
||||||
ansible.builtin.set_fact:
|
# ansible.builtin.set_fact:
|
||||||
bw_session: "{{ bw_session_result.results[-1].stdout | trim }}"
|
# bw_session: "{{ bw_session_result.results[-1].stdout | trim }}"
|
||||||
no_log: true
|
# no_log: true
|
||||||
|
|
||||||
|
|
||||||
- name: Utiliser le lookup
|
- name: Utiliser le lookup
|
||||||
@@ -83,8 +83,8 @@
|
|||||||
BW_SESSION: "{{ bw_session }}"
|
BW_SESSION: "{{ bw_session }}"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Return all secrets from a path
|
# - name: Return all secrets from a path
|
||||||
ansible.builtin.debug: "{{ bw_session }}"
|
# ansible.builtin.debug: "{{ bw_session }}"
|
||||||
|
|
||||||
- name: logout
|
- name: logout
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
Reference in New Issue
Block a user