mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
bitwarden
This commit is contained in:
parent
569bce3719
commit
a8d2bb861b
@ -17,6 +17,13 @@
|
|||||||
url: http://192.168.77.106:48000/ssh/id_rsa.pub
|
url: http://192.168.77.106:48000/ssh/id_rsa.pub
|
||||||
dest: ~/.ssh/id_rsa.pub
|
dest: ~/.ssh/id_rsa.pub
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
|
- name: get remote file contents
|
||||||
|
command: "cat {{ ansible_env.HOME }}/.ssh/id_rsa.pub"
|
||||||
|
register: key
|
||||||
|
- name: show key contents
|
||||||
|
debug:
|
||||||
|
var: key.stdout
|
||||||
|
|
||||||
- name: Print
|
- name: Print
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "the value of foo.txt is {{ lookup('ansible.builtin.file', '/home/jd/.ssh/id_rsa.pub') }}"
|
msg: "the value of foo.txt is {{ lookup('ansible.builtin.file', '/home/jd/.ssh/id_rsa.pub') }}"
|
Loading…
x
Reference in New Issue
Block a user