NT
Size: a a a
NT
AK
NT
VZ
NT
AK
VZ
AK
NT
VZ
VC
newgrp docker
- суть не в ssh сессии, ав терминальной, которая ещё не знает, что ее юзеру новая группа добавленаVL
VL
AN
meta: reset_connection
заработало! проблема была там, про что забыл….. я чертову прорву времени таскаю за собой файл ansible.cfg, который дополнялся годами )))[defaults]
forks = 20
host_key_checking = False
nocows = True
gathering = smart
fact_caching_timeout = 600
callback_whitelist = profile_tasks
# work around privilege escalation timeouts in ansible:
timeout = 30
remote_tmp = /home/ubuntu/.ansible/tmp
[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
timeout = 10
# shorten the ControlPath which is often too long; when it is,
# ssh connection reuse silently fails, making everything slower.
control_path = %(directory)s/%%h-%%r
meta: reset_connection
сработало!pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
L
meta: reset_connection
заработало! проблема была там, про что забыл….. я чертову прорву времени таскаю за собой файл ansible.cfg, который дополнялся годами )))[defaults]
forks = 20
host_key_checking = False
nocows = True
gathering = smart
fact_caching_timeout = 600
callback_whitelist = profile_tasks
# work around privilege escalation timeouts in ansible:
timeout = 30
remote_tmp = /home/ubuntu/.ansible/tmp
[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
timeout = 10
# shorten the ControlPath which is often too long; when it is,
# ssh connection reuse silently fails, making everything slower.
control_path = %(directory)s/%%h-%%r
meta: reset_connection
сработало!pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
L
LD
LD
ansible -m debug -a "var=mem|int/1024/1024|int|round" -e 'mem=1048576' localhostпочему round не работает в первом случае, а работает во втором...что за дичь ((
localhost | SUCCESS => {
"mem|int/1024/1024|int|round": "1.0"
}
ansible -m debug -a "var=new_mem|int" -e 'mem=1048576 new_mem={{mem|int/1024/1024}}' localhost
localhost | SUCCESS => {
"new_mem|int": "1"
}
LD
LD
/1024
переведет байты в мегабайты...