This message was deleted.
# bolt
s
This message was deleted.
y
I believe there is an option for this.. I’d look around sudo in the bolt configuration and transport options reference
n
The ssh transport has a sudo-password option, but I would prefer not storing the password in the inventory file.
This worked!
inventory.yaml
Copy code
groups:
  - name: linux-servers
    groups:
      - name: virt-servers
        targets:
          - name: virt1
            alias: v1
            uri: <ssh://v1>
            config:
              ssh:
                sudo-password:
                  _plugin: prompt
                  message: Enter sudo password for virt1
config:
  transport: ssh
  ssh:
    host-key-check: true
    user: user
    run-as: root
I was now asked for a password. I tested to use an env_var too and that one worked as well. šŸ™‚
šŸ‘šŸ» 1