How to untangle delegate_to and become in Ansible? (how to use become to connect with ssh?)

Consider the following layout for the current directory: . ├── foobar.yml └── roles └── foobar └── tasks └── main.yml Suppose we have the following tasks for the foobar role (roles/foobar/tasks/main.yml): — – add_host: name: “baz” ansible_user: “root” ansible_become: yes ansible_ssh_host: “” ansible_ssh_host_key_checking: no ansible_ssh_private_key_file: “” ansible_ssh_extra_args: “-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null” – wait_for: port: 22 host:…

Details

docker multi-user jupyterlab

I am trying to implement multiuser access to one docker-compose service container: here is docker-compose: version: ‘2.3’ services: hub: cpuset: ’19-39′ mem_limit: 64g build: context: . dockerfile: Dockerfile runtime: nvidia devices: – /dev/nvidia0 – /dev/nvidia1 ports: – 8823:000 – 8834:6006 volumes: – ‘/home/user1:/home/user1’ – ‘./srv/jupyterhub:/srv/jupyterhub’ – ‘./etc/passwd:/etc/passwd’ – ‘./etc/group:/etc/group’ – ‘./etc/shadow:/etc/shadow’ working_dir: /home/user1 tty: true…

Details

Is there a way to accurately parse a true CSV file?

I’m using bash shell. I want to parse a CSV file, in which the CSV file observes true CSV formats. From this thread — https://stackoverflow.com/questions/4286469/how-to-parse-a-csv-file-in-bash , I got this #!/bin/bash file_path=$1 echo $1 while IFS=, read -r ID name address zipcode do echo “I got:$ID|$name|$address|$zipcode” done < $file_path However, in a CSV file, since some…

Details

LibreOffice won’t open in Pop-OS

I’m using pop-os 19.10 with gnome 3.34.2 and whenever I try to launch libreoffice(version 6.3.4) I get this error: /usr/lib/libreoffice/program/soffice.bin: symbol lookup error: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates I tried removing ~/.config/libreoffice. I tried uninstalling and reinstalling libreoffice from the pop!_shop and with these commands: sudo apt-get –purge remove libreoffice-core sudo apt-get install libreoffice I also…

Details

rsync daemon stopped working a few days ago – some update has broken it

I have an rsync daemon on a machine running Ubuntu 18.04 which I use for daily backups. Daily backups stopped working on 22nd January with the following error:- @ERROR: access denied to esprimo from esprimo.zbmc.eu (192.168.1.3) rsync error: error starting client-server protocol (code 5) at main.c(1675) [sender=3.1.3] The rsyncd log just has:- 2020/01/24 08:37:01 [973]…

Details

How to make cards same height?

I have here 3 cards that look like this when I add the h-100 class to this cards they look like this <div class=”container”> <div class=”row”> <div class=”col-sm-4 pb-3″ > <!– Card –> <div class=”card card-image h-100 ” style=”background-color:grey;”> <!– Content –> <div class=”text-white text-center d-flex align-items-center rgba-black-strong py-5 px-4 justify-content-center”> <div> <h5 class=”pink-text”><i class=”fas…

Details