SA
Size: a a a
SA
Г
test1:мне нужно их объединить так, чтобы в первый словарь из второго попали только значения по ключам, которые там есть
aa:
a1: a1
a2: a2
bb: bb
test2:
aa:
a3:a3
cc: cc
test_new:можно ли как-то так сделать?)
aa:
a1: a1
a2: a2
a3: a3
bb: bb
AV
./host_vars/host-01.yml
---
cfg:
users:
- name: "name-01"
password: "hashed_password"
shell: "/bin/bash"
- name: "name-02"
password: "hashed_password"
shell: "/bin/bash"
- name: "name-03"
password: "hashed_password"
shell: "/bin/bash"
EY
./host_vars/host-01.yml
---
cfg:
users:
- name: "name-01"
password: "hashed_password"
shell: "/bin/bash"
- name: "name-02"
password: "hashed_password"
shell: "/bin/bash"
- name: "name-03"
password: "hashed_password"
shell: "/bin/bash"
BM
EY
AV
AV
BM
AV
python3 -c 'import crypt,getpass;pw=getpass.getpass();print(crypt.crypt(pw) if (pw==getpass.getpass("Confirm: ")) else exit())'
И
И
AM
И
И
И
И
Г