Advertisement
viniciusxp

send command to lxd

Dec 4th, 2022 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.30 KB | None | 0 0
  1. - name: Add the lxd server as a remote of host
  2.    hosts: all
  3.    tasks:
  4.      - name: register lxd remote
  5.        command: lxc remote add "{{ item }}" "{{ item.ansible_host }}" --accept-certificate --password "difficult_password"
  6.        with_items: "{{ groups['workers']}}"
  7.        tags: orchestrator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement